Explorar o código

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

kezhenxu94 %!s(int64=3) %!d(string=hai) anos
pai
achega
14bb722f6f
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  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