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,12 +98,8 @@ jobs:
|
||||
|
||||
# Remove any existing APK assets so re-runs don't accumulate duplicates.
|
||||
curl -sf -H "$AUTH" "$BASE/releases/$RELEASE_ID/assets" \
|
||||
| python3 -c "
|
||||
import sys, json
|
||||
for a in json.load(sys.stdin):
|
||||
if a['name'].endswith('.apk'):
|
||||
print(a['id'])
|
||||
" | while read AID; do
|
||||
| python3 -c "import sys,json; [print(a['id']) for a in json.load(sys.stdin) if a['name'].endswith('.apk')]" \
|
||||
| while read AID; do
|
||||
curl -sf -X DELETE -H "$AUTH" "$BASE/releases/$RELEASE_ID/assets/$AID"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user