From e4b24c479effa1e8ead3fd1256ec48e7226df815 Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Fri, 20 Jan 2023 12:15:15 +0100 Subject: [PATCH] fix array --- .github/actions/download-cache-and-artifacts/action.yml | 4 ++-- .github/actions/upload-cache-and-artifacts/action.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/download-cache-and-artifacts/action.yml b/.github/actions/download-cache-and-artifacts/action.yml index 6f03b05edb..d437e95683 100644 --- a/.github/actions/download-cache-and-artifacts/action.yml +++ b/.github/actions/download-cache-and-artifacts/action.yml @@ -23,7 +23,7 @@ runs: env: REMOTE_PATH: "adf/build-cache/${{ github.run_id }}" run: | - for i in '${{ inputs.packages }}'; do + for i in ( '${{ inputs.packages }}' ); do echo "downloading current run cache artifacts from ${REMOTE_PATH}/$i.tar.gz" time aws s3 cp --no-progress s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz $i.tar.gz du -h $i.tar.gz @@ -37,7 +37,7 @@ runs: if [ -n "${{ inputs.cache-key-suffix }}" ]; then REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}" fi - for i in '${{ inputs.persistent-packages }}'; do + for i in ( '${{ inputs.persistent-packages }}' ); do REMOTE_FILE_PATH="s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz" cache_exists=$(aws s3 ls $REMOTE_FILE_PATH > /dev/null) if [ $cache_exists -eq 0 ]; then diff --git a/.github/actions/upload-cache-and-artifacts/action.yml b/.github/actions/upload-cache-and-artifacts/action.yml index 46c294550c..a21ffd3f1a 100644 --- a/.github/actions/upload-cache-and-artifacts/action.yml +++ b/.github/actions/upload-cache-and-artifacts/action.yml @@ -22,7 +22,7 @@ runs: env: REMOTE_PATH: "adf/build-cache/${{ github.run_id }}" run: | - for i in '${{ inputs.packages }}'; do + for i in ( '${{ inputs.packages }}' ); do echo "processing $i" time tar czf $i.tar.gz $i echo "package size: $(du -h $i.tar.gz)" @@ -37,7 +37,7 @@ runs: if [ -n "${{ inputs.cache-key-suffix }}" ]; then REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}" fi - for i in '${{ inputs.persistent-packages }}'; do + for i in ( '${{ inputs.persistent-packages }}' ); do time tar czf $i.tar.gz $i du -h $i.tar.gz echo "pushing persistent cache to $REMOTE_PATH"