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

terrymanu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new a4abb2466a6 Use global job gate for nightly and scheduled checks 
(#40079)
a4abb2466a6 is described below

commit a4abb2466a6303045383ad673bd097980ae51308
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Oct 6 18:34:13 2026 +0800

    Use global job gate for nightly and scheduled checks (#40079)
---
 .github/workflows/nightly-build.yml      | 6 +++---
 .github/workflows/nightly-check.yml      | 6 +++---
 .github/workflows/nightly-sql-parser.yml | 2 +-
 .github/workflows/schedule-report.yml    | 2 +-
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/nightly-build.yml 
b/.github/workflows/nightly-build.yml
index 7173cdd684e..c55dc71e984 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -47,7 +47,7 @@ jobs:
     uses: ./.github/workflows/reusable-global-environment.yml
 
   upload-to-nightlies:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: Upload to Nightly Builds
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
@@ -157,7 +157,7 @@ jobs:
           ./mvnw -am -pl distribution/agent 
-Prelease,default-dep,docker.buildx.push -B -T1C -DskipTests 
-Dagent.image.repository=${{ env.AGENT }} -Dagent.image.tag=${{ github.run_id 
}} clean package
 
   build-cache:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: Build Project Cache
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
@@ -172,7 +172,7 @@ jobs:
 
   generate-and-test-examples:
     name: Example-${{ matrix.feature }}-${{ matrix.framework }}-${{ 
matrix.mode }}-${{ matrix.transaction }}
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     needs: [ build-cache, global-environment ]
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
     timeout-minutes: 90
diff --git a/.github/workflows/nightly-check.yml 
b/.github/workflows/nightly-check.yml
index 42f51f1b105..6d631e5a166 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -52,7 +52,7 @@ jobs:
         run: ./mvnw clean install spotbugs:check -Pcheck -T1C
 
   check-dead-links:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: Check - Dead Links
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
@@ -82,7 +82,7 @@ jobs:
           done
 
   check-codeql:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: Check - CodeQL
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
@@ -109,7 +109,7 @@ jobs:
           category: "/language:java"
 
   check-stale:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: Check - Stale Issues
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
diff --git a/.github/workflows/nightly-sql-parser.yml 
b/.github/workflows/nightly-sql-parser.yml
index ede813ffc93..5a264ad8226 100644
--- a/.github/workflows/nightly-sql-parser.yml
+++ b/.github/workflows/nightly-sql-parser.yml
@@ -39,7 +39,7 @@ jobs:
     uses: ./.github/workflows/reusable-global-environment.yml
 
   database-parse:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: CI - SQL Parser
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}
diff --git a/.github/workflows/schedule-report.yml 
b/.github/workflows/schedule-report.yml
index 05745789e8b..4b612d32126 100644
--- a/.github/workflows/schedule-report.yml
+++ b/.github/workflows/schedule-report.yml
@@ -38,7 +38,7 @@ jobs:
     uses: ./.github/workflows/reusable-global-environment.yml
 
   check-and-report-jacoco:
-    if: github.repository == 'apache/shardingsphere'
+    if: ${{ needs.global-environment.outputs.GLOBAL_JOB_ENABLED == 'true' }}
     name: Schedule - Jacoco report
     needs: global-environment
     runs-on: ${{ needs.global-environment.outputs.GLOBAL_RUNS_ON }}

Reply via email to