Allow missing release assets
This commit is contained in:
@@ -91,7 +91,7 @@ jobs:
|
|||||||
| tr '{' '\n' \
|
| tr '{' '\n' \
|
||||||
| grep "\"name\":\"$asset_name\"" \
|
| grep "\"name\":\"$asset_name\"" \
|
||||||
| sed -n 's/.*"id":[[:space:]]*\([0-9][0-9]*\).*/\1/p' \
|
| sed -n 's/.*"id":[[:space:]]*\([0-9][0-9]*\).*/\1/p' \
|
||||||
| head -n 1)"
|
| head -n 1 || true)"
|
||||||
if [ -n "$asset_id" ]; then
|
if [ -n "$asset_id" ]; then
|
||||||
curl -fsS -X DELETE "$upload_url/$asset_id" \
|
curl -fsS -X DELETE "$upload_url/$asset_id" \
|
||||||
-H "Authorization: token $GITEA_TOKEN"
|
-H "Authorization: token $GITEA_TOKEN"
|
||||||
|
|||||||
Reference in New Issue
Block a user