Skip to content

Commit 456ff2e

Browse files
authored
feat(release): Replace release bot with GH app (#637)
Replace release bot with GH app
1 parent 10e4689 commit 456ff2e

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
@@ -16,14 +16,20 @@ jobs:
1616
runs-on: ubuntu-latest
1717
name: "Release a new version"
1818
steps:
19+
- name: Get auth token
20+
id: token
21+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
22+
with:
23+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
24+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
1925
- uses: actions/checkout@v4
2026
with:
21-
token: ${{ secrets.GH_RELEASE_PAT }}
27+
token: ${{ steps.token.outputs.token }}
2228
fetch-depth: 0
2329
- name: Prepare release
2430
uses: getsentry/action-prepare-release@v1
2531
env:
26-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
32+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
2733
with:
2834
version: ${{ github.event.inputs.version }}
2935
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)