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 9684866 commit 1c9c10a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/docs-amplify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Amplify Preview
on:
pull_request:
workflow_dispatch:

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

jobs:
amplify-preview:
name: Get and post Amplify preview URL
Expand All @@ -17,17 +17,18 @@ jobs:
uses: actions/checkout@v4
with:
repository: gravitational/shared-workflows
ref: taras/amplify-preview-job
ref: taras/amplify-preview-go
sparse-checkout: |
.github/actions
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 }}

- uses: ./.github/actions/amplify-preview
- uses: ./tools/amplify-preview
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: true
create_branches: "false"
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1c9c10a

Please sign in to comment.