Skip to content

Commit 1919be2

Browse files
Merge pull request #2 from codequest-eu/improvement/workflow-cleanup
Add cleanup workflow
2 parents 2f4da28 + d7eb0b6 commit 1919be2

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

Diff for: .github/workflows/development.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
ARTIFACT_NAME: ${{ github.sha }}.zip
10-
ARTIFACT_BUCKET: devstarter-development-spa-builds
10+
ARTIFACT_BUCKET: email-footer-template-development-app-builds
1111

1212
DEPLOY_BUCKET: email-footer-template-app
1313
DEPLOY_URL: https://duuaiv9oid06y.cloudfront.net

Diff for: .github/workflows/pr_cleanup.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Pull Request Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
cleanup:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- name: Configure AWS Credentials
12+
uses: aws-actions/configure-aws-credentials@v1
13+
with:
14+
aws-access-key-id: ${{ secrets.DEVELOPMENT_AWS_ACCESS_KEY_ID }}
15+
aws-secret-access-key: ${{ secrets.DEVELOPMENT_AWS_SECRET_ACCESS_KEY }}
16+
aws-region: eu-west-1
17+
18+
- name: Remove preview from S3
19+
run: |
20+
aws s3 rm \
21+
--recursive \
22+
's3://email-footer-template-app/PR-${{ github.event.number }}'

0 commit comments

Comments
 (0)