ci(release): break infinite-loop chain on auto-bump merges#276
Merged
Conversation
The post-publish commit-back step creates a chore(release): bump version
to vX.Y.Z PR; merging that PR is a push to master, which triggers ANOTHER
release run, which publishes vX.Y.(Z+1) and creates ANOTHER bump-PR.
Repeats forever.
This adds a guard at the top of Determine version: if the latest commit
matches the bot's bump-back subject pattern, set skip=true and exit
before any version computation. The rest of the workflow short-circuits
via the existing 'if: steps.version.outputs.skip != true' guards.
Regex covers both the raw form ('chore(release): bump version to v2.0.3')
and the GitHub-squash-merge-decorated form ('... (#274)').
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
URGENT: Each auto-generated bump-PR merge currently triggers another release, generating another bump-PR. This adds a guard at the start of 'Determine version' that detects the bot's bump-back commit pattern and skips the release.
Regex matches both 'chore(release): bump version to v2.0.3' (raw) and 'chore(release): bump version to v2.0.3 (#274)' (squash-merged form). Other chore: commits and the original feat!: release commits are unaffected.