Skip to content

Commit 85a8b48

Browse files
committed
Fixed PR_NUMBER retrieval
1 parent 12ba54f commit 85a8b48

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/version.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ jobs:
3737
shell: bash
3838
run: |
3939
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
40-
REVISION=$(git describe --tags --long | awk -F- '{print $2}')
41-
export PR_NUMBER REVISION
40+
echo "::notice::PR_NUMBER is: ${PR_NUMBER}"
41+
echo "PR_NUMBER=$PR_NUMBER" >> $GITHUB_ENV
42+
export PR_NUMBER
4243
case "$RELEASE_KIND" in
4344
major|minor|patch)
4445
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
@@ -55,6 +56,8 @@ jobs:
5556
# echo "Intentionally not bumping version for dev release"
5657
;;
5758
esac
59+
env:
60+
GH_TOKEN: ${{ github.token }}
5861

5962
- name: Package and upload artifacts
6063
if: ${{ env.PACKAGE == 'true' }}

0 commit comments

Comments
 (0)