@@ -184,6 +184,7 @@ jobs:
184
184
opentelemetry-javaagent.asc.jar \
185
185
opentelemetry-java-instrumentation-SBOM.zip
186
186
187
+ # these are used as job outputs
187
188
echo "version=$VERSION" >> $GITHUB_OUTPUT
188
189
echo "prior-version=$PRIOR_VERSION" >> $GITHUB_OUTPUT
189
190
@@ -215,14 +216,20 @@ jobs:
215
216
release_date=$(gh release view v$VERSION --json publishedAt --jq .publishedAt | sed 's/T.*//')
216
217
RELEASE_DATE=$release_date .github/scripts/merge-change-log-after-release.sh
217
218
218
- - name : Use CLA approved github bot
219
- run : .github/scripts/use-cla-approved-github-bot.sh
219
+ - name : Use CLA approved bot
220
+ run : .github/scripts/use-cla-approved-bot.sh
221
+
222
+ - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
223
+ id : otelbot-token
224
+ with :
225
+ app-id : ${{ vars.OTELBOT_APP_ID }}
226
+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
220
227
221
228
- name : Create pull request against main
222
229
env :
223
230
VERSION : ${{ needs.release.outputs.version }}
224
231
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
225
- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
232
+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
226
233
run : |
227
234
if git diff --quiet; then
228
235
if [[ $VERSION == *.0 ]]; then
@@ -236,7 +243,7 @@ jobs:
236
243
237
244
message="Merge change log updates from $GITHUB_REF_NAME"
238
245
body="Merge change log updates from \`$GITHUB_REF_NAME\`."
239
- branch="opentelemetrybot /merge-change-log-updates-from-${GITHUB_REF_NAME//\//-}"
246
+ branch="otelbot /merge-change-log-updates-from-${GITHUB_REF_NAME//\//-}"
240
247
241
248
git checkout -b $branch
242
249
git commit -a -m "$message"
@@ -254,9 +261,6 @@ jobs:
254
261
with :
255
262
ref : main
256
263
257
- - name : Use CLA approved github bot
258
- run : .github/scripts/use-cla-approved-github-bot.sh
259
-
260
264
- name : Wait for release to be available in maven central
261
265
env :
262
266
VERSION : ${{ needs.release.outputs.version }}
@@ -279,15 +283,24 @@ jobs:
279
283
./gradlew japicmp -PapiBaseVersion=$PRIOR_VERSION -PapiNewVersion=$VERSION
280
284
./gradlew --refresh-dependencies japicmp
281
285
286
+ - name : Use CLA approved bot
287
+ run : .github/scripts/use-cla-approved-bot.sh
288
+
289
+ - uses : actions/create-github-app-token@67e27a7eb7db372a1c61a7f9bdab8699e9ee57f7 # v1.11.3
290
+ id : otelbot-token
291
+ with :
292
+ app-id : ${{ vars.OTELBOT_APP_ID }}
293
+ private-key : ${{ secrets.OTELBOT_PRIVATE_KEY }}
294
+
282
295
- name : Create pull request against main
283
296
env :
284
297
VERSION : ${{ needs.release.outputs.version }}
285
298
# not using secrets.GITHUB_TOKEN since pull requests from that token do not run workflows
286
- GH_TOKEN : ${{ secrets.OPENTELEMETRYBOT_GITHUB_TOKEN }}
299
+ GH_TOKEN : ${{ steps.otelbot-token.outputs.token }}
287
300
run : |
288
301
message="Update apidiff baseline to released version $VERSION"
289
302
body="Update apidiff baseline to released version \`$version\`."
290
- branch="opentelemetrybot /update-apidiff-baseline-to-released-version-${VERSION}"
303
+ branch="otelbot /update-apidiff-baseline-to-released-version-${VERSION}"
291
304
292
305
git checkout -b $branch
293
306
git add docs/apidiffs
0 commit comments