Skip to content

gha(amplify-preview): use custom action to generate Amplify previews for Teleport Docs #17

gha(amplify-preview): use custom action to generate Amplify previews for Teleport Docs

gha(amplify-preview): use custom action to generate Amplify previews for Teleport Docs #17

Workflow file for this run

name: Amplify Preview
on:
pull_request:
workflow_dispatch:
issue_comment:
types: [edited]
permissions:
pull-requests: write
id-token: write
jobs:
amplify-preview:
name: Get and post Amplify preview URL
runs-on: ubuntu-22.04-2core-arm64
environment: docs-amplify
steps:
- name: Checkout shared-workflow
uses: actions/checkout@v4
with:
repository: gravitational/shared-workflows
ref: taras/amplify-preview-job
sparse-checkout: |
tools
libs
- 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: Check Amplify job status test
uses: ./tools/amplify-preview
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: "true"
github_token: ${{ secrets.GITHUB_TOKEN }}
wait: "true"