Skip to content

Show Received on pledge modal to avoid confusion #250

Show Received on pledge modal to avoid confusion

Show Received on pledge modal to avoid confusion #250

Workflow file for this run

name: 'Amplify PR Closed'
on:
pull_request_target:
types: [closed]
jobs:
delete:
permissions:
id-token: write
if: contains(github.event.pull_request.labels.*.name, 'Preview Environment')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: configure AWS credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
output-credentials: true
- name: cleanup PR preview branch
uses: yinlinchen/[email protected]
with:
branch_name: ${{ github.head_ref }}
amplify_command: delete
env:
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }}
AWS_REGION: 'us-east-1'