30
30
# See this issue for explanation and testing:
31
31
# https://github.com/cmu-delphi/delphi-epidata/pull/1473
32
32
run : |
33
- python -m pip install bump-my-version
34
- echo -n "next_tag=" >> $GITHUB_OUTPUT
33
+ python -m pip install bump2version
35
34
allowed_pattern="^(major|minor|patch|[0-9]+\.[0-9]+\.[0-9]+)$"
36
35
37
36
if [[ ! ${{ github.event.inputs.versionName }} =~ $allowed_pattern ]]; then
@@ -40,10 +39,11 @@ jobs:
40
39
fi
41
40
42
41
if [[ ${{ github.event.inputs.versionName }} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
43
- echo "${{ github.event.inputs.versionName }}"
42
+ NEXT_TAG= "${{ github.event.inputs.versionName }}"
44
43
else
45
- echo $(bump-my-version show-bump | grep ${{ github.event.inputs.versionName }} | sed -r s,"^.*─ ",,)
44
+ NEXT_TAG=$(bump2version --dry-run --list ${{ github.event.inputs.versionName }} | grep ^new_version | sed -r s,"^.*= ",,)
46
45
fi
46
+ echo "next_tag=$NEXT_TAG" >> $GITHUB_OUTPUT
47
47
- name : Get main branch SHA
48
48
id : base-sha
49
49
run : echo "sha=$(git rev-parse origin/main)" >> $GITHUB_OUTPUT
59
59
if : steps.changed-py.outputs.any_changed == 'true'
60
60
run : |
61
61
cd src/client/packaging/pypi
62
- bump-my-version --allow-dirty --new-version ${{ steps.version.outputs.next_tag }}
62
+ bump2version --allow-dirty --new-version ${{ steps.version.outputs.next_tag }} _ignored_arg_
63
63
- name : Create pull request into prod
64
64
uses : peter-evans/create-pull-request@v3
65
65
with :
0 commit comments