Skip to content

Commit

Permalink
Fixed PR_NUMBER retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 18, 2023
1 parent 12ba54f commit 85a8b48
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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' }}
Expand Down

0 comments on commit 85a8b48

Please sign in to comment.