only invalidate if added or modified files (#16639)

* only invalidate if added or modified files

* renamed parameter
This commit is contained in:
Dmytro Vorotyntsev 2021-12-20 08:49:48 +02:00 committed by GitHub
parent 1a94092e58
commit 634848228a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,11 @@ jobs:
id: filter id: filter
- name: Invalidate CloudFront - 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 uses: chetan/invalidate-cloudfront-action@v2
env: env:
PATHS: ${{ steps.filter.outputs.paths }}" PATHS: ${{ steps.filter.outputs.paths }}"
DISTRIBUTION: ${{ secrets.DISTRIBUTION }} DISTRIBUTION: ${{ secrets.AWS_DISTRIBUTION }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: "us-east-1" AWS_REGION: "us-east-1"