Skip to content

Commit

Permalink
feat(action): Fix aws config
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grevin committed Feb 21, 2024
1 parent 6ff0a30 commit 2bdc4f4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/pr-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bdc4f4

Please sign in to comment.