From 2bdc4f40dc472fdc90c6742c4e57a74b167d590f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Gr=C3=A9vin?= Date: Wed, 21 Feb 2024 18:32:31 +0100 Subject: [PATCH] feat(action): Fix aws config --- .github/workflows/pr-closed.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-closed.yml b/.github/workflows/pr-closed.yml index 2e9f16ce7..79fcbd6cd 100644 --- a/.github/workflows/pr-closed.yml +++ b/.github/workflows/pr-closed.yml @@ -8,11 +8,17 @@ jobs: pr-closed: runs-on: ubuntu-latest steps: + - name: Install aws cli + if: github.event_name == 'pull_request' + id: install-aws-cli + uses: unfor19/install-aws-cli-action@v1 + - name: Setup aws - uses: aws-actions/configure-aws-credentials@v1 + if: github.event_name == 'pull_request' + uses: aws-actions/configure-aws-credentials@v4 with: role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} - aws-region: ${{ env.AWS_REGION }} + aws-region: ${{ vars.AWS_REGION }} - name: Remove to S3 run: aws s3 rm "s3://${{ vars.AWS_BUCKET_NAME }}/${{ github.head_ref }}/" --recursive