From a39aa1c6c3fe23663f629d9e0d58a2aa92846303 Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Fri, 20 Jan 2023 14:11:31 +0100 Subject: [PATCH] debug --- .github/actions/download-cache-and-artifacts/action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/download-cache-and-artifacts/action.yml b/.github/actions/download-cache-and-artifacts/action.yml index 16af7713be..d1d356ab0f 100644 --- a/.github/actions/download-cache-and-artifacts/action.yml +++ b/.github/actions/download-cache-and-artifacts/action.yml @@ -33,16 +33,19 @@ runs: - name: download and extract persistent cache artifacts from s3 shell: bash run: | - cat $GITHUB_WORKSPACE/package-lock.json | shasum | head -c 40 HASH=$(cat $GITHUB_WORKSPACE/package-lock.json | shasum | head -c 40) REMOTE_PATH="adf/build-cache/${HASH}" if [ -n "${{ inputs.cache-key-suffix }}" ]; then REMOTE_PATH="${REMOTE_PATH}-${{ inputs.cache-key-suffix }}" fi + echo "A" packages=( $(echo ${{ inputs.persistent-packages }}) ) + echo "B" for i in "${packages[@]}"; do + echo "C-$i" REMOTE_FILE_PATH="s3://${S3_BUILD_BUCKET_SHORT_NAME}/${REMOTE_PATH}/$i.tar.gz" cache_exists=$(aws s3 ls $REMOTE_FILE_PATH > /dev/null) + echo "D-$i" if [ $cache_exists -eq 0 ]; then echo "downloading persistent cache artifacts from $REMOTE_FILE_PATH" aws s3 cp --no-progress REMOTE_FILE_PATH $i.tar.gz