From 85a8b4852e55c493f43db8a5e8dd2c2fcaa5fb14 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Mon, 18 Dec 2023 06:44:33 -0600 Subject: [PATCH] Fixed PR_NUMBER retrieval --- .github/workflows/version.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version.yaml b/.github/workflows/version.yaml index 14093303..c584649b 100644 --- a/.github/workflows/version.yaml +++ b/.github/workflows/version.yaml @@ -37,8 +37,9 @@ jobs: shell: bash run: | PR_NUMBER=$(gh pr view --json number -q .number || echo "") - REVISION=$(git describe --tags --long | awk -F- '{print $2}') - export PR_NUMBER REVISION + echo "::notice::PR_NUMBER is: ${PR_NUMBER}" + echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV + export PR_NUMBER case "$RELEASE_KIND" in major|minor|patch) bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND" @@ -55,6 +56,8 @@ jobs: # echo "Intentionally not bumping version for dev release" ;; esac + env: + GH_TOKEN: ${{ github.token }} - name: Package and upload artifacts if: ${{ env.PACKAGE == 'true' }}