Allow having branch and tag with the same name

When creating a patch release from a branch called `v0.63.1`, the new
tag would get the same name and pushing it would fail with `error: src
refspec v0.63.1 matches more than one`.
This commit is contained in:
Stefan Haller
2026-07-15 13:23:11 +02:00
parent a65d468cd3
commit dda0af0f48
+1 -1
View File
@@ -151,7 +151,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag "$NEW_TAG" -a -m "Release $NEW_TAG"
git push origin "$NEW_TAG"
git push origin "refs/tags/$NEW_TAG"
- name: Setup Go
uses: actions/setup-go@v6