mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2026-02-10 11:40:28 +08:00
fix: repair yaml syntax in build workflow
This commit is contained in:
parent
a4ab3cb448
commit
75f2522a99
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -26,7 +26,7 @@ jobs:
|
||||
jq -r '.id // empty')
|
||||
|
||||
if [ ! -z "$RELEASE_ID" ] && [ "$RELEASE_ID" != "empty" ]; then
|
||||
echo "�Found dev release with ID: $RELEASE_ID"
|
||||
echo "✅ Found dev release with ID: $RELEASE_ID"
|
||||
|
||||
echo "📋 Getting list of assets with pagination..."
|
||||
ALL_ASSETS="[]"
|
||||
@ -63,16 +63,16 @@ jobs:
|
||||
# Delete each asset with detailed logging
|
||||
echo "$ALL_ASSETS" | jq -r '.[].id' | while read asset_id; do
|
||||
if [ ! -z "$asset_id" ]; then
|
||||
echo "🗑� Deleting asset ID: $asset_id"
|
||||
echo "🗑️ Deleting asset ID: $asset_id"
|
||||
RESPONSE=$(curl -s -w "HTTPSTATUS:%{http_code}" -X DELETE \
|
||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
||||
"https://api.github.com/repos/${{ github.repository }}/releases/assets/$asset_id")
|
||||
|
||||
HTTP_CODE=$(echo $RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')
|
||||
if [ "$HTTP_CODE" = "204" ]; then
|
||||
echo "�Successfully deleted asset $asset_id"
|
||||
echo "✅ Successfully deleted asset $asset_id"
|
||||
else
|
||||
echo "â<EFBFBD>?Failed to delete asset $asset_id (HTTP: $HTTP_CODE)"
|
||||
echo "❌ Failed to delete asset $asset_id (HTTP: $HTTP_CODE)"
|
||||
echo "Response: $(echo $RESPONSE | sed -e 's/HTTPSTATUS:.*//')"
|
||||
fi
|
||||
# Add small delay to avoid rate limiting
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user