Skip to content

Commit

Permalink
Add failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos authored and github-actions committed Dec 23, 2024
1 parent 9080504 commit 371611a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/docs-amplify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,19 @@ jobs:

- name: Create Amplify preview environment
uses: gravitational/shared-workflows/tools/amplify-preview@tools/amplify-preview/v0.0.1
continue-on-error: true
with:
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
create_branches: "true"
github_token: ${{ secrets.GITHUB_TOKEN }}
wait: "true"

- name: Print failure message
if: failure()
env:
ERR_TITLE: Teleport Docs preview build failed
ERR_MESSAGE: >-
Please refer to the following documentation for help: https://www.notion.so/goteleport/How-to-Amplify-deployments-162fdd3830be8096ba72efa1a49ee7bc?pvs=4
run: |
echo ::error title=$ERR_TITLE::$ERR_MESSAGE
exit 1

0 comments on commit 371611a

Please sign in to comment.