Skip to content

Commit 4afb4c8

Browse files
authored
Merge pull request #52 from rmiki-dev/version
fix: adds a github app installation token and passes it into GITHUB TOKEN in order to fix 'Invalid GitHub token' authentication error
2 parents 00d93e0 + 7bf9c19 commit 4afb4c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,20 @@ jobs:
4242
version-release:
4343
runs-on: ubuntu-latest
4444
needs: [test-makefile, test-fedora]
45+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4546
steps:
4647
- name: Checkout
4748
uses: actions/checkout@v6
4849
with:
4950
fetch-depth: 0
5051
fetch-tags: true
52+
- name: Github app installation token
53+
id: create_token
54+
uses: tibdex/github-app-token@v2
55+
with:
56+
app_id: ${{ secrets.RELEASE_APP_ID }}
57+
private_key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
5158
- name: Semantic Release
5259
uses: cycjimmy/semantic-release-action@v6
53-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5460
env:
55-
GITHUB_TOKEN: ${{ secrets.RELEASE_APP_ID }}
61+
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}

0 commit comments

Comments
 (0)