ci: use warning annotation for existing release fallback
Lint & Test / test (push) Successful in 10s
Lint & Test / test (push) Successful in 10s
This commit is contained in:
@@ -62,7 +62,7 @@ jobs:
|
|||||||
print(json.dumps(data, indent=2), file=sys.stderr)
|
print(json.dumps(data, indent=2), file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
" 2>&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" \
|
RELEASE=$(curl -s "$BASE_URL/releases/tags/$TAG" \
|
||||||
-H "Authorization: token $DEPLOY_TOKEN")
|
-H "Authorization: token $DEPLOY_TOKEN")
|
||||||
RELEASE_ID=$(echo "$RELEASE" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
RELEASE_ID=$(echo "$RELEASE" | python3 -c "import sys,json; print(json.load(sys.stdin)['id'])")
|
||||||
|
|||||||
Reference in New Issue
Block a user