Skip to content

Commit a308a35

Browse files
committed
Fixed autoversioning
1 parent 68f6da1 commit a308a35

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/bumpversion.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ jobs:
5454
if: ${{ github.event_name == 'workflow_dispatch' }}
5555
shell: bash
5656
run: |
57+
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
58+
REVISION=$(git describe --tags --long | awk -F- '{print $2}')
59+
export PR_NUMBER REVISION
5760
case "$RELEASE_KIND" in
5861
major|minor|patch)
5962
bump-my-version bump "$RELEASE_KIND"

0 commit comments

Comments
 (0)