Skip to content

Commit

Permalink
GHA to run amplify-preview action
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos committed Nov 6, 2024
1 parent 0430896 commit d2fb50b
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docs-amplify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Amplify Preview
on:
pull_request:

permissions:
pull-requests: write
id-token: write

concurrency:
cancel-in-progress: true
# This value is arbitrary as long as it includes the pull request number
group: 'limit to running one instance at a time for the pull request ${{ github.event.pull_request.number }}'

jobs:
amplify-preview:
name: Amplify preview
runs-on: ubuntu-latest
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 }}

# Checkout main branch of shared-workflow repository.
- name: Checkout shared-workflow
uses: actions/checkout@v4
with:
repository: gravitational/shared-workflows
ref: taras/amplify-preview-job
sparse-checkout: |
.github/actions
- uses: ./.github/actions/amplify-preview
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: "true"

0 comments on commit d2fb50b

Please sign in to comment.