Skip to content

Commit e535c2b

Browse files
authored
feat(release): Replace release bot with GH app (#3458)
* Replace release bot with GH app * remove unneeded app token
1 parent 56db0db commit e535c2b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,21 @@ jobs:
1919
runs-on: ubuntu-latest
2020
name: "Release a new version"
2121
steps:
22+
- name: Get auth token
23+
id: token
24+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
25+
with:
26+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
27+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
2228
- uses: actions/checkout@v4
2329
with:
24-
token: ${{ secrets.GH_RELEASE_PAT }}
30+
token: ${{ steps.token.outputs.token }}
2531
fetch-depth: 0
2632
- name: Prepare release
2733
id: prepare-release
2834
uses: getsentry/action-prepare-release@v1
2935
env:
30-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
36+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3137
with:
3238
version: ${{ github.event.inputs.version }}
3339
force: ${{ github.event.inputs.force }}
@@ -42,7 +48,6 @@ jobs:
4248
steps:
4349
- uses: actions/checkout@v4
4450
with:
45-
token: ${{ secrets.GH_RELEASE_PAT }}
4651
fetch-depth: 0
4752
- uses: getsentry/action-release@v1
4853
env:

0 commit comments

Comments
 (0)