fix(scripts): anchor grep pattern to prevent false tag match

grep -q "refs/tags/$TAG" matched substrings, so v0.27.0b0
would block release of v0.27.0. Changed to "refs/tags/${TAG}$"
to require exact end-of-line match.
This commit is contained in:
Julian Pawlowski 2026-03-29 18:49:18 +00:00
parent 0381749e6f
commit 566ccf4017

View file

@ -76,7 +76,7 @@ if git rev-parse "$TAG" >/dev/null 2>&1; then
die "Tag $TAG already exists locally\\nTo remove it: git tag -d $TAG"
fi
if git ls-remote --tags origin | grep -q "refs/tags/$TAG"; then
if git ls-remote --tags origin | grep -q "refs/tags/${TAG}$"; then
die "Tag $TAG already exists on remote"
fi