[bump minor] Fix bumpversion workflow: correct action branch reference and step conditions#1142
Conversation
…main to @master Agent-Logs-Url: https://github.com/igmhub/picca/sessions/13d34ad6-9014-4680-9d0d-8b3c75394154 Co-authored-by: corentinravoux <52483673+corentinravoux@users.noreply.github.com>
merging main
|
@copilot rework on this, test if bumpversion is working or not |
|
@copilot if that helps I get this error: Run bump2version patch --verbose |
I tested bumpversion and it works correctly. Here's the verification:
The bumpversion logic itself has no issues. The only problem was the push step referencing a non-existent |
…nditions The always() condition caused bump steps to run even when the 'Install bump2version' step failed, resulting in 'command not found' errors. Using success() ensures bump steps only run when all prior steps (including pip install) succeed.
The Fixed in 35cf831 by replacing |
corentinravoux
left a comment
There was a problem hiding this comment.
Testing workflow fix for bump version. No impact on picca per se
There was a problem hiding this comment.
Pull request overview
This PR fixes the version-bump GitHub Actions workflow so bump steps no longer run after earlier setup failures, preventing misleading bump2version: command not found errors.
Changes:
- Replaces
always()withsuccess()in all bump/no-bump step conditions. - Preserves commit-message-based selection for patch, major, minor, and no-bump paths.
- Keeps the push action reference on
ad-m/github-push-action@master.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR #1123 bulk-renamed
master→mainacross the repo, inadvertently changingad-m/github-push-action@masterto@main. That action repo has nomainbranch, so the Push step 404s and version bump commits are never pushed.Additionally, the bump version steps used
always()in theirifconditions, which caused them to execute even when the "Install bump2version" step failed, resulting inbump2version: command not founderrors.ad-m/github-push-action@mainback to@master(the only branch that exists in that action's repo)always()withsuccess()in the bump step conditions so they only run when all prior steps (including pip install) have succeeded