From 616bafc26f0b7fc514936c7628a3c2b18832e969 Mon Sep 17 00:00:00 2001 From: Arc-E-Tect Date: Mon, 22 Jul 2024 22:29:38 +0200 Subject: [PATCH] fix: add the right PAT Turns out that even in dry-run it is required to have the correct PAT with the right permissions set --- .github/workflows/release_in_one_job.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release_in_one_job.yml b/.github/workflows/release_in_one_job.yml index ef36948..4356a97 100644 --- a/.github/workflows/release_in_one_job.yml +++ b/.github/workflows/release_in_one_job.yml @@ -47,6 +47,8 @@ jobs: run: | export NEXT_TAG_VERSION=$(npx semantic-release --dry-run | grep 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/') echo "new_tag_version=${NEXT_TAG_VERSION}" >> $GITHUB_OUTPUT + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - name: Update version and date in file if: ${{ steps.calculate_semantic_version.outputs.new_tag_version != '' }}