From f1fc1a9d5675eda61e686e1b7dd2e41fa193194f Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Fri, 20 Jan 2023 14:30:02 +0100 Subject: [PATCH] fix if --- .github/actions/download-cache-and-artifacts/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/download-cache-and-artifacts/action.yml b/.github/actions/download-cache-and-artifacts/action.yml index f4ce01ca6c..28567680b3 100644 --- a/.github/actions/download-cache-and-artifacts/action.yml +++ b/.github/actions/download-cache-and-artifacts/action.yml @@ -43,7 +43,7 @@ runs: 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 [ aws s3 ls $REMOTE_FILE_PATH > /dev/null -eq 0 ]; then + if [ $cache_exists -eq 0 ]; then echo "E-$i" echo "downloading persistent cache artifacts from $REMOTE_FILE_PATH" echo "F-$i"