fix(NO_ISSUE) Fis article "use eslint improve workflow" #236
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Closed | |
on: | |
pull_request_target: | |
types: [ closed ] | |
jobs: | |
pr-closed: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Install aws cli | |
id: install-aws-cli | |
uses: unfor19/install-aws-cli-action@v1 | |
- name: Setup aws | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
aws-region: ${{ vars.AWS_REGION }} | |
- name: Remove to S3 | |
run: aws s3 rm "s3://${{ vars.AWS_BUCKET_NAME }}/${{ github.head_ref }}/" --recursive | |
- name: Deactivate environment | |
uses: bobheadxi/deployments@v1 | |
with: | |
step: deactivate-env | |
token: ${{ secrets.GITHUB_TOKEN }} | |
env: ${{ github.head_ref }} | |
desc: Environment was pruned |