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