mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 01:54:18 -08:00
close pr be gha
This commit is contained in:
parent
d5a15f1053
commit
c6a83d1e63
1 changed files with 20 additions and 0 deletions
20
.github/workflows/closed_be_pr.yml
vendored
Normal file
20
.github/workflows/closed_be_pr.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
name: Closed Backend PR
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
paths:
|
||||||
|
- "data/**"
|
||||||
|
env:
|
||||||
|
PR_NUMBER: ${{github.event.pull_request.number}}
|
||||||
|
jobs:
|
||||||
|
remove-artifacts:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Configure AWS Credentials
|
||||||
|
uses: aws-actions/configure-aws-credentials@v1
|
||||||
|
with:
|
||||||
|
aws-access-key-id: ${{ secrets.CLIENT_DEV_AWS_ACCESS_KEY_ID }}
|
||||||
|
aws-secret-access-key: ${{ secrets.CLIENT_DEV_AWS_SECRET_ACCESS_KEY }}
|
||||||
|
aws-region: us-east-1
|
||||||
|
- name: Remove staging artifacts
|
||||||
|
run: aws s3 rm s3://justice40-data/data-pipeline-staging/ --exclude "*" --include "$(echo $PR_NUMBER)-*" --recursive
|
Loading…
Add table
Reference in a new issue