Update .gitea/workflows/deploy-ci.yaml

This commit is contained in:
Arlind
2025-06-09 09:57:15 +02:00
parent 6ae04b2bee
commit 3f5823013e

View File

@@ -89,7 +89,7 @@ jobs:
latest_tag=$(curl -sSL --fail -H "Authorization: token $TOKEN" \
"$api/tags" | jq -r '.[0].name // empty')
if [[ -n "$latest_tag" && "$latest_tag" != "v1.0.0" ]]; then
if [[ "$latest_tag" != "v1.0.0" ]]; then
curl -sSL -X DELETE -H "Authorization: token $TOKEN" \
"$api/git/refs/tags/$latest_tag" || true
fi