fix: dereference annotated tag to its commit before the push comparison #96

Merged
lars merged 1 commits from ci/fix-annotated-tag-push-check into master 2026-09-04 08:41:57 +02:00
+1 -1
View File
@@ -122,7 +122,7 @@ jobs:
run: |
VERSION=$(uv version --short)
TAG="v$VERSION"
if git rev-parse "$TAG" >/dev/null 2>&1 && [ "$(git rev-parse "$TAG")" = "$(git rev-parse HEAD)" ]; then
if git rev-parse "$TAG" >/dev/null 2>&1 && [ "$(git rev-parse "$TAG^{commit}")" = "$(git rev-parse HEAD)" ]; then
git push --atomic origin HEAD:master "refs/tags/$TAG"
else
echo "No new release commit/tag to push (already released, or nothing changed)"