Browse Source

Fix docs style is incorrect by CI pass (#15167)

Jay Chung 1 year ago
parent
commit
0016b96b85
1 changed files with 8 additions and 4 deletions
  1. 8 4
      .github/workflows/docs.yml

+ 8 - 4
.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