Skip to content

Commit

Permalink
changing amplify previews to be named after their PR instead of their…
Browse files Browse the repository at this point in the history
… branch name
  • Loading branch information
dr-bizz committed Jun 19, 2024
1 parent f58d594 commit 6b9a2b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ jobs:
- name: deploy PR preview
uses: CruGlobal/amplify-preview-actions@handle-existing-branches
with:
branch_name: ${{ github.head_ref }}
branch_name: 'pr-${{ github.event.number}}'
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'
EnvironmentVariables: 'SITE_URL=https://pr-${{ github.event.number }}.${{ secrets.AMPLIFY_APP_ID }}.amplifyapp.com'

0 comments on commit 6b9a2b9

Please sign in to comment.