Skip to content

plasma-infra(plasma-new-hope): Migrate to storybook 7 [Part 4] #667

plasma-infra(plasma-new-hope): Migrate to storybook 7 [Part 4]

plasma-infra(plasma-new-hope): Migrate to storybook 7 [Part 4] #667

name: Clean up S3
on:
pull_request:
types: [closed]
branches:
- dev
- master
concurrency:
# New commit on branch cancels running workflows of the same branch
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
clean:
name: Clean up
runs-on: ubuntu-latest
env:
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }}
PR_NAME: pr-${{ github.event.number }}
steps:
- name: s3 Clean artifacts made for closed pr - pr
uses: vitorsgomes/s3-rm-action@master
with:
args: --recursive
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET_2 }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_S3_ENDPOINT: ${{ secrets.AWS_ENDPOINT }}
AWS_REGION: ${{ secrets.AWS_REGION }}
PATH_TO_DELETE: "pr/${PR_NAME}"