From 16204401832ab03934c117532690364c30c7c04a Mon Sep 17 00:00:00 2001 From: abhishek Date: Tue, 17 Sep 2024 09:46:49 +0530 Subject: [PATCH] testing github action 9 --- .../uniffi-aries-vcx/scripts/ios.build.cargo.sh | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh index 261351ab51..2a29f190be 100755 --- a/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh +++ b/aries/wrappers/uniffi-aries-vcx/scripts/ios.build.cargo.sh @@ -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." }