From a308a35edb60096e9ccf9a85f62b4986323c9159 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Sat, 4 Nov 2023 08:31:27 -0500 Subject: [PATCH] Fixed autoversioning --- .github/workflows/bumpversion.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bumpversion.yaml b/.github/workflows/bumpversion.yaml index 2137d7fc..cc604d07 100644 --- a/.github/workflows/bumpversion.yaml +++ b/.github/workflows/bumpversion.yaml @@ -54,6 +54,9 @@ jobs: if: ${{ github.event_name == 'workflow_dispatch' }} 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 case "$RELEASE_KIND" in major|minor|patch) bump-my-version bump "$RELEASE_KIND"