Skip to content

Commit

Permalink
Fix release workflow (#233)
Browse files Browse the repository at this point in the history
* Fix release workflow

GITHUB_TOKEN cannot be used for bumping versions. To fix it the previous token (WORKFLOW_GITHUB_TOKEN) is used again

* Use right token
  • Loading branch information
guidoderooij authored Mar 21, 2024
1 parent 67215e0 commit f54336d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ jobs:
if: ${{ !startsWith(github.event.head_commit.message, '[CI/CD]') }}
outputs:
tag-name: ${{ steps.lib-bump.outputs.newTag }}
permissions:
contents: write

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# This is a public_repo Github personal access token.
token: ${{ secrets.WORKFLOW_GITHUB_TOKEN }}

- name: Bump version
id: lib-bump
Expand Down

0 comments on commit f54336d

Please sign in to comment.