fix: skip tag creation if tag already exists

This commit is contained in:
2025-12-28 14:43:08 +01:00
parent 0daacebca5
commit 01f09b26ff

View File

@@ -64,6 +64,10 @@ bump new_version:
tag:
#!/usr/bin/env bash
set -euo pipefail
if git rev-parse "v{{version}}" >/dev/null 2>&1; then
echo "Tag v{{version}} already exists, skipping"
exit 0
fi
echo "Creating tag v{{version}}"
git tag -a "v{{version}}" -m "Release v{{version}}"
git push origin "v{{version}}"