From 968486694e4569342ef60c82a620d42b0f08c97c Mon Sep 17 00:00:00 2001 From: Taras <9948629+taraspos@users.noreply.github.com> Date: Wed, 11 Dec 2024 11:56:59 +0000 Subject: [PATCH] Update docs-amplify.yaml --- .github/workflows/docs-amplify.yaml | 39 +++++++++++++---------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/.github/workflows/docs-amplify.yaml b/.github/workflows/docs-amplify.yaml index 63a4188bf385d..82f4a2a68d009 100644 --- a/.github/workflows/docs-amplify.yaml +++ b/.github/workflows/docs-amplify.yaml @@ -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