Skip to content

Commit

Permalink
Update bump_version.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samwinebrake authored Nov 13, 2024
1 parent 087e92d commit 90d9006
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,15 @@ jobs:
# Create and checkout new branch
BRANCH_NAME="version-bump-${{ github.event.pull_request.head.sha }}"
git checkout -b $BRANCH_NAME
# Get latest version from tags
LATEST_TAG=$(git tag --sort=-version:refname | head -n1)
CURRENT_VERSION=${LATEST_TAG#v} # Remove 'v' prefix
echo "Latest tag: $LATEST_TAG (version: $CURRENT_VERSION)"
# Show current version before bump, and new version
echo "Current version before bump:"
bump-my-version show current_version
bump-my-version bump ${{ steps.bump-type.outputs.type }} --verbose
# Bump version
echo "Bumping version..."
bump-my-version bump --current-version $CURRENT_VERSION ${{ steps.bump-type.outputs.type }} --config-file pyproject.toml --verbose
echo "Version after bump:"
bump-my-version show current_version
Expand Down

0 comments on commit 90d9006

Please sign in to comment.