Skip to content

Commit 89d1671

Browse files
leifdreizlerclaude
andcommitted
fix: skip tag step when no bump PR was opened
When the dispatched version is already on develop, bump-version.sh is a no-op and peter-evans sets pull-request-operation=none with pull-request-head-sha pointing at develop's existing HEAD. The tag step then tried to create refs/tags/vX.Y.Z at that already-tagged commit and failed with 422 "Reference already exists". Gate the tag step on a PR actually being created/updated so no-op dispatches exit cleanly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 806ec96 commit 89d1671

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/bump_version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
sign-commits: true
3838

3939
- name: Tag release on bump branch
40+
if: steps.cpr.outputs.pull-request-operation != 'none'
4041
env:
4142
GH_TOKEN: ${{ steps.token.outputs.token }}
4243
SHA: ${{ steps.cpr.outputs.pull-request-head-sha }}

0 commit comments

Comments
 (0)