Skip to content

Commit 2b18a66

Browse files
authored
Replace release bot with GH app (#961)
1 parent 6f7ecf1 commit 2b18a66

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/publish-release.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,22 @@ jobs:
2222
runs-on: ubuntu-latest
2323
name: Release version
2424
steps:
25+
- name: Get auth token
26+
id: token
27+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
28+
with:
29+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
30+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
31+
2532
- uses: actions/checkout@v3
2633
with:
27-
token: ${{ secrets.GH_RELEASE_PAT }}
34+
token: ${{ steps.token.outputs.token }}
2835
fetch-depth: 0
2936

3037
- name: Prepare release
3138
uses: getsentry/action-prepare-release@v1
3239
env:
33-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
40+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3441
with:
3542
version: ${{ github.event.inputs.version }}
3643
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)