diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4b14d2b..e1cc804 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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)"