From 89ed37323bdbd34859d0081c26e3966cb3f2c053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Gr=C3=A9vin?= Date: Fri, 23 Feb 2024 16:10:44 +0100 Subject: [PATCH] fix(action) Fix cache invalidation --- .github/workflows/deploy.yml | 4 +--- .github/workflows/pr-closed.yml | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 38f5d68f5..435c97af9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -137,9 +137,7 @@ jobs: - name: Clear caches if: github.ref == 'refs/heads/master' && github.event_name == 'push' - run: | - aws configure set preview.cloudfront true - aws cloudfront create-invalidation --distribution-id "${{ secrets.CLOUDFRONT_DISTRIBUTION }}" --paths "/*" + run: aws cloudfront create-invalidation --distribution-id "${{ secrets.CLOUDFRONT_DISTRIBUTION }}" --paths "/*" - name: Indexing on Algolia run: yarn indexation:algolia diff --git a/.github/workflows/pr-closed.yml b/.github/workflows/pr-closed.yml index 6e3476069..4d6915d28 100644 --- a/.github/workflows/pr-closed.yml +++ b/.github/workflows/pr-closed.yml @@ -7,6 +7,7 @@ on: jobs: pr-closed: runs-on: ubuntu-latest + permissions: write-all steps: - name: Install aws cli id: install-aws-cli