Skip to content

Commit bd8882e

Browse files
Michael McNeesclaude
authored andcommitted
fix(ci): use git tag -f to handle pre-existing plain semver tag
goreleaser pushes the plain vX.Y.Z tag to the remote when it creates the GitHub release. On retriggers, fetch-depth: 0 pulls that tag in and the bare git tag command fails with "tag already exists". Force flag overwrites the local alias safely — goreleaser never pushes it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d6d8489 commit bd8882e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release-engine.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
# the current commit. Goreleaser reads tags but never pushes them, so
4343
# this won't pollute the remote. The namespaced tag (engine/vX.Y.Z) is
4444
# what triggered this workflow; goreleaser needs the plain vX.Y.Z form.
45-
git tag "${TAG}"
45+
git tag -f "${TAG}"
4646
4747
- name: Generate NOTICE
4848
run: |

0 commit comments

Comments
 (0)