fix(ci): collapse multi-line Python to one-liner to fix YAML block scalar indentation error
Android Release / build-apk (push) Successful in 4m3s
Android Release / build-apk (push) Successful in 4m3s
This commit is contained in:
@@ -98,14 +98,10 @@ jobs:
|
|||||||
|
|
||||||
# Remove any existing APK assets so re-runs don't accumulate duplicates.
|
# Remove any existing APK assets so re-runs don't accumulate duplicates.
|
||||||
curl -sf -H "$AUTH" "$BASE/releases/$RELEASE_ID/assets" \
|
curl -sf -H "$AUTH" "$BASE/releases/$RELEASE_ID/assets" \
|
||||||
| python3 -c "
|
| python3 -c "import sys,json; [print(a['id']) for a in json.load(sys.stdin) if a['name'].endswith('.apk')]" \
|
||||||
import sys, json
|
| while read AID; do
|
||||||
for a in json.load(sys.stdin):
|
curl -sf -X DELETE -H "$AUTH" "$BASE/releases/$RELEASE_ID/assets/$AID"
|
||||||
if a['name'].endswith('.apk'):
|
done
|
||||||
print(a['id'])
|
|
||||||
" | while read AID; do
|
|
||||||
curl -sf -X DELETE -H "$AUTH" "$BASE/releases/$RELEASE_ID/assets/$AID"
|
|
||||||
done
|
|
||||||
|
|
||||||
curl -sf -X POST \
|
curl -sf -X POST \
|
||||||
-H "$AUTH" \
|
-H "$AUTH" \
|
||||||
|
|||||||
Reference in New Issue
Block a user