Skip to content

amplify-preview: use shared workflow #51

amplify-preview: use shared workflow

amplify-preview: use shared workflow #51

name: Amplify Preview
on:
pull_request:
permissions:
pull-requests: write
id-token: write
jobs:
amplify-preview:
name: Prepare Amplify Preview
runs-on: ubuntu-22.04-2core-arm64
environment: docs-amplify
steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4
with:
aws-region: us-west-2
role-to-assume: ${{ vars.IAM_ROLE }}
- name: Get Amplify Preview URL
uses: gravitational/shared-workflows/tools/amplify-preview@release/amplify-preview/v0.0.1
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: "false"
github_token: ${{ secrets.GITHUB_TOKEN }}
wait: "true"