ci: use warning annotation for existing release fallback
Lint & Test / test (push) Successful in 10s

This commit is contained in:
2026-03-25 23:02:46 +03:00
parent 4ef11c8f00
commit d0830cbbe5
+1 -1
View File
@@ -62,7 +62,7 @@ jobs:
print(json.dumps(data, indent=2), file=sys.stderr)
sys.exit(1)
" 2>&1) || {
echo "Create failed, fetching existing release for tag $TAG..."
echo "::warning::Release already exists for tag $TAG — reusing existing release"
RELEASE=$(curl -s "$BASE_URL/releases/tags/$TAG" \
-H "Authorization: token $DEPLOY_TOKEN")
RELEASE_ID=$(echo "$RELEASE" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")