Skip to content

Commit 8422b52

Browse files
committed
Update auto-merge.yml
1 parent 7a2fe15 commit 8422b52

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/auto-merge.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,17 @@ jobs:
77
if: github.actor == 'getsentry-bot' && startsWith(github.head_ref, 'craft-')
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Get auth token
11+
id: token
12+
uses: actions/create-github-app-token@3378cda945da322a8db4b193e19d46352ebe2de5 #v.1.10.4
13+
with:
14+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
15+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
1016
- run: |
1117
set -x
1218
GH_TOKEN=$GHA_TOKEN gh pr review --approve --repo "$GITHUB_REPOSITORY" "$PR"
1319
GH_TOKEN=$BOT_TOKEN gh pr merge --auto --merge --repo "$GITHUB_REPOSITORY" "$PR"
1420
env:
1521
PR: ${{ github.event.number }}
1622
GHA_TOKEN: ${{ github.token }}
17-
BOT_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
23+
BOT_TOKEN: ${{ steps.token.outputs.token }}

0 commit comments

Comments
 (0)