Skip to content

Commit 692defd

Browse files
Update .github/workflows/create-release.yml
Co-authored-by: george <[email protected]>
1 parent 68ed66f commit 692defd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/create-release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,15 @@ jobs:
3939
fi
4040
4141
if [[ ${{ github.event.inputs.versionName }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
42+
# use given version number
4243
NEXT_TAG="${{ github.event.inputs.versionName }}"
4344
else
45+
# calculate new version number based on given tag
4446
NEXT_TAG=$(bump2version --dry-run --list ${{ github.event.inputs.versionName }} | grep ^new_version | sed -r s,"^.*=",,)
4547
fi
48+
# apply given or calculated version number
49+
bump2version --new-version $NEXT_TAG _ignored_arg_
50+
# save version number for later
4651
echo "next_tag=$NEXT_TAG" >> $GITHUB_OUTPUT
4752
- name: Get main branch SHA
4853
id: base-sha

0 commit comments

Comments
 (0)