From dcd889e22c58f167f3347ba571a53a9391310a50 Mon Sep 17 00:00:00 2001 From: Laith Bahodi Date: Thu, 19 Dec 2024 11:42:48 -0500 Subject: [PATCH] named variable + use () for cat --- .github/workflows/test-stellar.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-stellar.yaml b/.github/workflows/test-stellar.yaml index 7a3cc472..7e3bb85d 100644 --- a/.github/workflows/test-stellar.yaml +++ b/.github/workflows/test-stellar.yaml @@ -141,8 +141,9 @@ jobs: ENDPOINT_URL: ${{ secrets.cf-endpoint-url }} CF_BUCKET_ROOT_KEY: ${{ vars.CF_BUCKET_ROOT_KEY }} run: | - PACKAGE_VERSION=${cat stellar/version} - for name in axelar_gateway axelar_operators axelar_gas_service interchain_token interchain_token_service example; do + PACKAGE_VERSION=$(cat stellar/version) + CONTRACTS=("axelar_gateway" "axelar_operators" "axelar_gas_service" "interchain_token" "interchain_token_service" "example") + for name in CONTRACTS; do CF_WASM_BUCKET_ROOT_KEY="${CF_BUCKET_ROOT_KEY}/$name/$PACKAGE_VERSION/wasm" FILE_KEY=axelar-cgp-soroban-wasm-$name-$PACKAGE_VERSION aws s3api get-object --bucket $S3_BUCKET_NAME --key "$CF_WASM_BUCKET_ROOT_KEY/$FILE_KEY" --acl public-read --endpoint-url $ENDPOINT_URL