From 5cc2dada6cacb5d7a3248f03eff877ff459858fe Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Fri, 20 Jan 2023 14:40:14 +0100 Subject: [PATCH] removed subcommand --- .github/actions/download-cache-and-artifacts/action.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/actions/download-cache-and-artifacts/action.yml b/.github/actions/download-cache-and-artifacts/action.yml index 28567680b3..d5482a4bd4 100644 --- a/.github/actions/download-cache-and-artifacts/action.yml +++ b/.github/actions/download-cache-and-artifacts/action.yml @@ -41,9 +41,8 @@ runs: packages=( $(echo ${{ inputs.persistent-packages }}) ) for i in "${packages[@]}"; do REMOTE_FILE_PATH="s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz" - set +e; cache_exists=$(aws s3 ls $REMOTE_FILE_PATH > /dev/null); set -e - echo "D-$i" - if [ $cache_exists -eq 0 ]; then + set +e; aws s3 ls $REMOTE_FILE_PATH > /dev/null; set -e + if [ $? -eq 0 ]; then echo "E-$i" echo "downloading persistent cache artifacts from $REMOTE_FILE_PATH" echo "F-$i"