Skip to content

Commit 4dca17f

Browse files
authored
Bring back using token for checkout (#5943)
1 parent 31ff796 commit 4dca17f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/create-or-update-release-pr.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,16 @@ jobs:
2525
create-or-update-release-pr:
2626
runs-on: ubuntu-latest
2727
steps:
28+
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
29+
id: otelbot-token
30+
with:
31+
app-id: ${{ vars.OTELBOT_JS_APP_ID }}
32+
private-key: ${{ secrets.OTELBOT_JS_PRIVATE_KEY }}
33+
2834
- name: Checkout
2935
uses: actions/checkout@v5
36+
with:
37+
token: ${{ steps.otelbot-token.outputs.token }}
3038

3139
- uses: actions/setup-node@v5
3240
with:
@@ -37,12 +45,6 @@ jobs:
3745

3846
- run: npm ci
3947

40-
- uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
41-
id: otelbot-token
42-
with:
43-
app-id: ${{ vars.OTELBOT_JS_APP_ID }}
44-
private-key: ${{ secrets.OTELBOT_JS_PRIVATE_KEY }}
45-
4648
- name: Create/Update Release PR
4749
run: |
4850
git config user.name otelbot

0 commit comments

Comments
 (0)