From f54336dd7e7e8585d577e1e3c6f7c013528ceb4d Mon Sep 17 00:00:00 2001 From: Guido de Rooij <72734809+guidoderooij@users.noreply.github.com> Date: Thu, 21 Mar 2024 14:05:55 +0100 Subject: [PATCH] Fix release workflow (#233) * 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 --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 269df81..ab5688e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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