Skip to content

Commit a643880

Browse files
authored
feat(release): Replace release bot with GH app (#26)
1 parent bb5daa1 commit a643880

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
@@ -15,9 +15,15 @@ jobs:
1515
runs-on: ubuntu-latest
1616
name: "Release a new version"
1717
steps:
18+
- name: Get auth token
19+
id: token
20+
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
21+
with:
22+
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
23+
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
1824
- uses: actions/checkout@v3
1925
with:
20-
token: ${{ secrets.GH_RELEASE_PAT }}
26+
token: ${{ steps.token.outputs.token }}
2127
fetch-depth: 0
2228

2329
- run: |
@@ -27,7 +33,7 @@ jobs:
2733
- name: 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 }}

0 commit comments

Comments
 (0)