瀏覽代碼

[CI] Require E2E to passed before merging (#8891)

kezhenxu94 3 年之前
父節點
當前提交
14bb722f6f
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      .github/workflows/e2e.yml

+ 7 - 1
.github/workflows/e2e.yml

@@ -143,6 +143,12 @@ jobs:
     runs-on: ubuntu-latest
     timeout-minutes: 30
     needs: [ e2e ]
+    if: always()
     steps:
       - name: Status
-        run: echo "Passed!"
+        run: |
+          if [[ ${{ needs.e2e.result }} == 'success' ]]; then
+            echo "Passed!"
+          else
+            exit -1
+          fi