Skip to content

Commit

Permalink
Update docs-amplify.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos authored Dec 11, 2024
1 parent c1a13e3 commit 9684866
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/docs-amplify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,27 @@ permissions:
pull-requests: write
id-token: write

concurrency:
# This value is arbitrary as long as it includes the pull request number
group: 'amplify-preview-${{ github.ref }}'

jobs:
amplify-preview:
name: Amplify preview
name: Get and post Amplify preview URL
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 }}
- name: Checkout shared-workflow
uses: actions/checkout@v4
with:
repository: gravitational/shared-workflows
ref: taras/amplify-preview-job
sparse-checkout: |
.github/actions
# 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
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4
with:
aws-region: us-west-2
role-to-assume: ${{ vars.IAM_ROLE }}

- uses: ./.github/actions/amplify-preview
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: "true"
- uses: ./.github/actions/amplify-preview
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: true

0 comments on commit 9684866

Please sign in to comment.