Bump express from 4.19.2 to 4.20.0 #69
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: Delete Test Seed | |
on: | |
pull_request_target: | |
types: [closed] | |
workflow_dispatch: | |
inputs: | |
pull_request_number: | |
description: 'Pull Request Number' | |
required: true | |
type: number | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
REMOTE_SEED_PATH: 'pull/${{ github.event.pull_request.number || github.event.inputs.pull_request_number }}/seed' | |
steps: | |
- name: Delete test seed | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_PRODUCTION_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_PRODUCTION_SECRET_ACCESS_KEY }} | |
AWS_REGION: us-west-2 | |
CLOUDFRONT_DISTRIBUTION_ID: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} | |
run: | | |
if aws s3 ls "s3://brave-production-griffin-origin/$REMOTE_SEED_PATH" > /dev/null 2>&1; then | |
aws s3 rm "s3://brave-production-griffin-origin/$REMOTE_SEED_PATH" | |
aws cloudfront create-invalidation --distribution-id "$CLOUDFRONT_DISTRIBUTION_ID" --paths "/$REMOTE_SEED_PATH" | |
fi |