diff --git a/.github/workflows/docs-amplify.yaml b/.github/workflows/docs-amplify.yaml index 3bdf88b06e260..8842a2fb125d1 100644 --- a/.github/workflows/docs-amplify.yaml +++ b/.github/workflows/docs-amplify.yaml @@ -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