From 0016b96b85df628a742aac5497f78a243826b64d Mon Sep 17 00:00:00 2001 From: Jay Chung Date: Sat, 25 Nov 2023 22:32:38 +0800 Subject: [PATCH] Fix docs style is incorrect by CI pass (#15167) --- .github/workflows/docs.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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