-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |