Skip to content

Commit a84dace

Browse files
authored
Replace release bot with GH app (#4354)
1 parent f54118b commit a84dace

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@ jobs:
1717
runs-on: ubuntu-latest
1818
name: "Release a new version"
1919
steps:
20+
- name: Get auth token
21+
id: token
22+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
23+
with:
24+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
25+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2026
- name: Check out current commit (${{ github.sha }})
2127
uses: actions/checkout@v4
2228
with:
23-
token: ${{ secrets.GH_RELEASE_PAT }}
29+
token: ${{ steps.token.outputs.token }}
2430
fetch-depth: 0
2531
- run: corepack enable
2632
- uses: actions/setup-node@v4
@@ -31,7 +37,7 @@ jobs:
3137
- name: Prepare release
3238
uses: getsentry/action-prepare-release@v1
3339
env:
34-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
40+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3541
with:
3642
version: ${{ github.event.inputs.version }}
3743
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)