Skip to content

Commit

Permalink
testing github action 9
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekinstnt committed Sep 17, 2024
1 parent eef4e30 commit 1620440
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,16 +197,15 @@
ASSET_IDS=$(echo "$ASSETS_JSON" | jq -r ".[] | select(.name == \"$ASSET_NAME\") | .id")

if [ -z "$ASSET_IDS" ]; then
echo "No asset found with name: $ASSET_NAME"
exit 1
echo "No asset found with name: $ASSET_NAME"
else
# Delete the existing asset(s)
for ASSET_ID in $ASSET_IDS; do
echo "Deleting existing asset with ID: $ASSET_ID"
curl -s -X DELETE -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$REPO/releases/assets/$ASSET_ID"

fi

# Delete the existing asset(s)
for ASSET_ID in $ASSET_IDS; do
echo "Deleting existing asset with ID: $ASSET_ID"
curl -s -X DELETE -H "Authorization: token $GITHUB_TOKEN" "https://api.github.com/repos/$REPO/releases/assets/$ASSET_ID"
done

echo "Asset delete process complete."

}
Expand Down

0 comments on commit 1620440

Please sign in to comment.