Update .gitea/workflows/deploy-ci.yaml
This commit is contained in:
@@ -89,7 +89,7 @@ jobs:
|
|||||||
|
|
||||||
latest_tag=$(curl -sSL --fail -H "Authorization: token $TOKEN" \
|
latest_tag=$(curl -sSL --fail -H "Authorization: token $TOKEN" \
|
||||||
"$api/tags" | jq -r '.[0].name // empty')
|
"$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" \
|
curl -sSL -X DELETE -H "Authorization: token $TOKEN" \
|
||||||
"$api/git/refs/tags/$latest_tag" || true
|
"$api/git/refs/tags/$latest_tag" || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user