From df656c10e67a258ee6c1d27d4f67efe31b8391d8 Mon Sep 17 00:00:00 2001 From: "kirill.chalov" Date: Tue, 7 Jan 2025 11:35:18 +0800 Subject: [PATCH] fix: make path correct --- .github/workflows/prw-deploy-preview.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prw-deploy-preview.yml b/.github/workflows/prw-deploy-preview.yml index 5a336d38..efecb629 100644 --- a/.github/workflows/prw-deploy-preview.yml +++ b/.github/workflows/prw-deploy-preview.yml @@ -44,7 +44,7 @@ jobs: - name: Check if checksums-s3.txt is in S3 bucket id: download-checksums-s3 run: | - if aws s3 ls s3://${{ secrets.PREVIEW_AWS_BUCKET_NAME }}/checksums-s3.txt; then + if aws s3 ls s3://${{ secrets.PREVIEW_AWS_BUCKET_NAME }}/pr${{ env.PR_NUMBER }}/checksums-s3.txt; then checksums_exists=true else checksums_exists=false @@ -73,7 +73,7 @@ jobs: - name: Download checksums-s3.txt from S3 bucket if: env.checksums-exists == 'true' run: | - aws s3 cp s3://${{ secrets.PREVIEW_AWS_BUCKET_NAME }}/checksums-s3.txt ./checksums-s3.txt || touch ./checksums-s3.txt + aws s3 cp s3://${{ secrets.PREVIEW_AWS_BUCKET_NAME }}/pr${{ env.PR_NUMBER }}/checksums-s3.txt ./checksums-s3.txt || touch ./checksums-s3.txt env: AWS_S3_BUCKET: ${{ secrets.PREVIEW_AWS_BUCKET_NAME }} AWS_REGION: ${{ secrets.AWS_REGION }}