MPDX-8429 Fix 502 error on 14-month report - 2nd approach #271
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: Amplify Preview | |
on: | |
pull_request: | |
types: [labeled] | |
jobs: | |
deploy: | |
if: contains(github.event.label.name, 'Preview Environment') | |
runs-on: ubuntu-latest | |
continue-on-error: true | |
permissions: | |
id-token: write | |
pull-requests: write | |
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: deploy PR preview | |
uses: CruGlobal/amplify-preview-actions@handle-existing-branches | |
with: | |
branch_name: ${{ github.head_ref }} | |
amplify_command: deploy | |
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' | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
EnvironmentVariables: 'SITE_URL=https://${{ github.head_ref }}.${{ secrets.AMPLIFY_APP_ID }}.amplifyapp.com' |