diff --git a/.gitea/workflows/deploy-ci.yaml b/.gitea/workflows/deploy-ci.yaml index f3560ee..88f7740 100644 --- a/.gitea/workflows/deploy-ci.yaml +++ b/.gitea/workflows/deploy-ci.yaml @@ -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