Skip to content

Commit 77a6499

Browse files
tarasposgithub-actions
authored andcommitted
Add failure message
1 parent 36c84fd commit 77a6499

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docs-amplify.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,19 @@ jobs:
2323

2424
- name: Create Amplify preview environment
2525
uses: gravitational/shared-workflows/tools/amplify-preview@tools/amplify-preview/v0.0.1
26+
continue-on-error: true
2627
with:
2728
app_ids: ${{ vars.AMPLIFY_APP_IDS }}
2829
create_branches: "true"
2930
github_token: ${{ secrets.GITHUB_TOKEN }}
3031
wait: "true"
32+
33+
- name: Print failure message
34+
if: failure()
35+
env:
36+
ERR_TITLE: Teleport Docs preview build failed
37+
ERR_MESSAGE: >-
38+
Please refer to the following documentation for help: https://www.notion.so/goteleport/How-to-Amplify-deployments-162fdd3830be8096ba72efa1a49ee7bc?pvs=4
39+
run: |
40+
echo ::error title=$ERR_TITLE::$ERR_MESSAGE
41+
exit 1

0 commit comments

Comments
 (0)