diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1b287c6a20..a4195927e9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -70,9 +70,13 @@ jobs: - style - img-check - dead-link - if: success() + if: always() steps: - - name: success + - name: Status run: | - echo "Docs check success" - exit 0 + if [[ ${{ contains(needs.*.result, 'failure') }} == 'true' || ${{ contains(needs.*.result, 'cancelled') }} == 'true' ]]; then + echo "Build Failed!" + exit 1 + else + echo "Build Success!" + fi