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

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


The following commit(s) were added to refs/heads/dev by this push:
     new 53faa5fe7 [Feature] update action config to support run CI on fork 
repo (#5065)
53faa5fe7 is described below

commit 53faa5fe7a3cc57e6241c420e0af055b56c71259
Author: Jarvis <[email protected]>
AuthorDate: Wed Jul 12 17:44:42 2023 +0800

    [Feature] update action config to support run CI on fork repo (#5065)
---
 .github/workflows/backend.yml | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml
index 2da9711d8..fbe37acec 100644
--- a/.github/workflows/backend.yml
+++ b/.github/workflows/backend.yml
@@ -18,9 +18,9 @@
 name: Backend
 on:
   push:
+  pull_request:
     branches:
       - dev
-  pull_request:
     paths-ignore:
       - 'docs/**'
       - '**/*.md'
@@ -32,7 +32,7 @@ concurrency:
 
 jobs:
   license-header:
-    if: github.repository == 'apache/seatunnel'
+    if: github.repository == '${{github.actor}}/seatunnel'
     name: License header
     runs-on: ubuntu-latest
     timeout-minutes: 10
@@ -44,7 +44,7 @@ jobs:
         uses: apache/skywalking-eyes@985866ce7e324454f61e22eb2db2e998db09d6f3
 
   code-style:
-    if: github.repository == 'apache/seatunnel'
+    if: github.repository == '${{github.actor}}/seatunnel'
     name: Code style
     runs-on: ubuntu-latest
     timeout-minutes: 10
@@ -56,7 +56,7 @@ jobs:
         run: ./mvnw --batch-mode --quiet --no-snapshot-updates clean 
spotless:check
 
   dead-link:
-    if: github.repository == 'apache/seatunnel'
+    if: github.repository == '${{github.actor}}/seatunnel'
     name: Dead links
     runs-on: ubuntu-latest
     timeout-minutes: 30
@@ -69,7 +69,7 @@ jobs:
           done
 
   sanity-check:
-    if: github.repository == 'apache/seatunnel'
+    if: github.repository == '${{github.actor}}/seatunnel'
     name: Sanity check results
     needs: [ license-header, code-style, dead-link ]
     runs-on: ubuntu-latest
@@ -83,8 +83,7 @@ jobs:
 
   changes:
     runs-on: ubuntu-latest
-    # To prevent error when there's no base branch
-    if: github.repository == 'apache/seatunnel'
+    if: github.repository == '${{github.actor}}/seatunnel'
     timeout-minutes: 10
     outputs:
       api: ${{ steps.filter.outputs.api }}

Reply via email to