Skip to content

Commit 12fc6cb

Browse files
fix
1 parent f757a5b commit 12fc6cb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release-sourcebot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ jobs:
2525
version: ${{ steps.calculate_version.outputs.version }}
2626

2727
steps:
28+
- name: Generate GitHub App token
29+
id: generate_token
30+
uses: actions/create-github-app-token@v1
31+
with:
32+
app-id: ${{ secrets.RELEASE_APP_ID }}
33+
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
34+
2835
- name: Checkout repository
2936
uses: actions/checkout@v4
3037
with:
3138
ref: main
3239
fetch-depth: 0
40+
token: ${{ steps.generate_token.outputs.token }}
3341

3442
- name: Calculate new version
3543
id: calculate_version
@@ -123,6 +131,8 @@ jobs:
123131
git tag -a "v$VERSION" -m "sourcebot v$VERSION"
124132
125133
- name: Push changes
134+
env:
135+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
126136
run: |
127137
git push origin main
128138
git push origin --tags

0 commit comments

Comments
 (0)