dont delete tag
All checks were successful
Update Community Skins README / Full CI/CD Pipeline (push) Successful in 7s
All checks were successful
Update Community Skins README / Full CI/CD Pipeline (push) Successful in 7s
This commit is contained in:
@@ -90,11 +90,6 @@ 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
|
|
||||||
curl -sSL -X DELETE -H "Authorization: token $TOKEN" \
|
|
||||||
"$api/tags/$latest_tag" || true
|
|
||||||
fi
|
|
||||||
|
|
||||||
url="$api/contents/$TEMPLATE_PATH"
|
url="$api/contents/$TEMPLATE_PATH"
|
||||||
sha=$(curl -sSL -H "Authorization: token $TOKEN" "$url" \
|
sha=$(curl -sSL -H "Authorization: token $TOKEN" "$url" \
|
||||||
| jq -r 'select(.sha != null).sha // empty' || true)
|
| jq -r 'select(.sha != null).sha // empty' || true)
|
||||||
|
|||||||
Reference in New Issue
Block a user