From 634848228adc1714ceac7f324f5a91fd1cb1b512 Mon Sep 17 00:00:00 2001 From: Dmytro Vorotyntsev <2937451+vorotech@users.noreply.github.com> Date: Mon, 20 Dec 2021 08:49:48 +0200 Subject: [PATCH] only invalidate if added or modified files (#16639) * only invalidate if added or modified files * renamed parameter --- .github/workflows/s3_upload.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/s3_upload.yml b/.github/workflows/s3_upload.yml index 49780985f..210a9db7f 100644 --- a/.github/workflows/s3_upload.yml +++ b/.github/workflows/s3_upload.yml @@ -34,11 +34,11 @@ jobs: id: filter - name: Invalidate CloudFront - if: github.repository_owner == 'trustwallet' && github.event_name == 'push' + if: github.repository_owner == 'trustwallet' && github.event_name == 'push' && steps.filter.outputs.paths != '' uses: chetan/invalidate-cloudfront-action@v2 env: PATHS: ${{ steps.filter.outputs.paths }}" - DISTRIBUTION: ${{ secrets.DISTRIBUTION }} + DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: "us-east-1"