Skip to content

Commit a63b6b7

Browse files
authored
feat(release): Replace release bot with GH app (#903)
1 parent 84c57fb commit a63b6b7

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/publish-release.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,23 @@ jobs:
1818
runs-on: ubuntu-latest
1919
name: Release version
2020
steps:
21+
- name: Get auth token
22+
id: token
23+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
24+
with:
25+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
26+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
27+
2128
- name: Checkout
2229
uses: actions/checkout@v4
2330
with:
24-
token: ${{ secrets.GH_RELEASE_PAT }}
31+
token: ${{ steps.token.outputs.token }}
2532
fetch-depth: 0
2633

2734
- name: Prepare release
2835
uses: getsentry/action-prepare-release@v1
2936
env:
30-
GITHUB_TOKEN: ${{ secrets.GH_RELEASE_PAT }}
37+
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
3138
with:
3239
version: ${{ github.event.inputs.version }}
3340
force: ${{ github.event.inputs.force }}

0 commit comments

Comments
 (0)