Skip to content

Commit

Permalink
fix bump-version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Feb 27, 2024
1 parent 2b7100f commit 643558c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
git config --local user.name "bumpversion[bot]"
- name: Install bump-my-version
run: |
python -m pip install "bump-my-version>=0.17.1"
python -m pip install "bump-my-version>=0.18.3"
- name: Current Version
run: |
bump-my-version show current_version
Expand All @@ -80,11 +80,12 @@ jobs:
run: |
if [[ ${{ env.CURRENT_VERSION }} =~ -dev(\.\d+)? ]]; then
echo "Development version (ends in 'dev(\.\d+)?'), bumping 'build' version"
bump-my-version show new_version --increment build
bump-my-version bump build
else
echo "Version is stable, bumping 'patch' version"
bump-my-version show new_version --increment patch
bump-my-version bump patch
fi
bump-my-version show-bump
- name: Push Changes
uses: ad-m/[email protected]
with:
Expand Down

0 comments on commit 643558c

Please sign in to comment.