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"