This is an automated email from the ASF dual-hosted git repository.

zihaoxiang pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 80ea8049e0 [CI] try to fix ci (#9366)
80ea8049e0 is described below

commit 80ea8049e0fba5ac2de8a19d9dc3969a79f93667
Author: xiangzihao <[email protected]>
AuthorDate: Wed Apr 6 21:57:52 2022 +0800

    [CI] try to fix ci (#9366)
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
    
    * try to fix ci
---
 .github/workflows/backend.yml   | 19 +++++++++++--------
 .github/workflows/e2e.yml       | 19 +++++++++++--------
 .github/workflows/unit-test.yml | 19 +++++++++++--------
 3 files changed, 33 insertions(+), 24 deletions(-)

diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index bb2b65c56d..c9fcc543b3 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -42,18 +42,18 @@ jobs:
     name: Backend-Path-Filter
     runs-on: ubuntu-latest
     outputs:
-      ignore: ${{ steps.filter.outputs.ignore }}
+      not-ignore: ${{ steps.filter.outputs.not-ignore }}
     steps:
       - uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
         id: filter
         with:
           filters: |
-            ignore:
-              - '(docs/**|dolphinscheduler-ui/**|dolphinscheduler-ui-next/**)'
+            not-ignore:
+              - '!(docs/**|dolphinscheduler-ui/**|dolphinscheduler-ui-next/**)'
   build:
     name: Backend-Build
     needs: paths-filter
-    if: ${{ needs.paths-filter.outputs.ignore == 'false' }}
+    if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
     runs-on: ubuntu-latest
     timeout-minutes: 30
     steps:
@@ -81,13 +81,16 @@ jobs:
     name: Build
     runs-on: ubuntu-latest
     timeout-minutes: 30
-    needs: [ build ]
+    needs: [ build, paths-filter ]
     if: always()
     steps:
       - name: Status
         run: |
-          if [[ ${{ needs.build.result }} == 'success' || ${{ 
needs.paths-filter.outputs.ignore == 'true' }} ]]; then
-            echo "Passed!"
-          else
+          if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; 
then
+            echo "Skip Build!"
+            exit 0
+          fi
+          if [[ ${{ needs.build.result }} != 'success' ]]; then
+            echo "Build Failed!"
             exit -1
           fi
diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index f35c8d13df..f34be88b17 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -33,18 +33,18 @@ jobs:
     name: E2E-Path-Filter
     runs-on: ubuntu-latest
     outputs:
-      ignore: ${{ steps.filter.outputs.ignore }}
+      not-ignore: ${{ steps.filter.outputs.not-ignore }}
     steps:
       - uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
         id: filter
         with:
           filters: |
-            ignore:
-              - '(docs/**)'
+            not-ignore:
+              - '!(docs/**)'
   build:
     name: E2E-Build
     needs: paths-filter
-    if: ${{ needs.paths-filter.outputs.ignore == 'false' }}
+    if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
     runs-on: ubuntu-latest
     timeout-minutes: 20
     steps:
@@ -155,13 +155,16 @@ jobs:
     name: E2E
     runs-on: ubuntu-latest
     timeout-minutes: 30
-    needs: [ e2e ]
+    needs: [ e2e, paths-filter ]
     if: always()
     steps:
       - name: Status
         run: |
-          if [[ ${{ needs.e2e.result }} == 'success' || ${{ 
needs.paths-filter.outputs.ignore == 'true' }} ]]; then
-            echo "Passed!"
-          else
+          if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; 
then
+            echo "Skip E2E!"
+            exit 0
+          fi
+          if [[ ${{ needs.e2e.result }} != 'success' ]]; then
+            echo "E2E Failed!"
             exit -1
           fi
diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml
index b666741107..d7016ad991 100644
--- a/.github/workflows/unit-test.yml
+++ b/.github/workflows/unit-test.yml
@@ -40,18 +40,18 @@ jobs:
     name: Unit-Test-Path-Filter
     runs-on: ubuntu-latest
     outputs:
-      ignore: ${{ steps.filter.outputs.ignore }}
+      not-ignore: ${{ steps.filter.outputs.not-ignore }}
     steps:
       - uses: dorny/paths-filter@b2feaf19c27470162a626bd6fa8438ae5b263721
         id: filter
         with:
           filters: |
-            ignore:
-              - '(docs/**)'
+            not-ignore:
+              - '!(docs/**)'
   unit-test:
     name: Unit-Test
     needs: paths-filter
-    if: ${{ needs.paths-filter.outputs.ignore == 'false' }}
+    if: ${{ needs.paths-filter.outputs.not-ignore == 'true' }}
     runs-on: ubuntu-latest
     timeout-minutes: 30
     steps:
@@ -114,13 +114,16 @@ jobs:
     name: Unit Test
     runs-on: ubuntu-latest
     timeout-minutes: 30
-    needs: [ unit-test ]
+    needs: [ unit-test, paths-filter ]
     if: always()
     steps:
       - name: Status
         run: |
-          if [[ ${{ needs.unit-test.result }} == 'success' || ${{ 
needs.paths-filter.outputs.ignore == 'true' }} ]]; then
-            echo "Passed!"
-          else
+          if [[ ${{ needs.paths-filter.outputs.not-ignore }} == 'false' ]]; 
then
+            echo "Skip Unit Test!"
+            exit 0
+          fi
+          if [[ ${{ needs.unit-test.result }} != 'success' ]]; then
+            echo "Unit Test Failed!"
             exit -1
           fi

Reply via email to