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

zhonghongsheng 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 1c897e82a4c Update GitHub Actions workflow actions/cache to exclude 
shardingsphere itself (#37742)
1c897e82a4c is described below

commit 1c897e82a4c8c2a24fdcfec772bde63f18b55eb1
Author: Hongsheng Zhong <[email protected]>
AuthorDate: Thu Jan 15 12:14:31 2026 +0800

    Update GitHub Actions workflow actions/cache to exclude shardingsphere 
itself (#37742)
    
    * Update GitHub Actions workflow actions/cache to exclude shardingsphere 
itself
    
    * Revert changes on graalvm.yml
---
 .github/workflows/ci.yml                    |  5 ++++-
 .github/workflows/e2e-agent.yml             | 10 ++++++++--
 .github/workflows/e2e-operation.yml         |  5 ++++-
 .github/workflows/e2e-sql.yml               | 10 ++++++++--
 .github/workflows/nightly-build.yml         | 30 +++++++++++++++++++++++------
 .github/workflows/nightly-check.yml         | 25 +++++++++++++++++++-----
 .github/workflows/nightly-ci.yml            | 15 ++++++++++++---
 .github/workflows/nightly-e2e-agent.yml     | 10 ++++++++--
 .github/workflows/nightly-e2e-operation.yml |  5 ++++-
 .github/workflows/nightly-e2e-sql.yml       | 10 ++++++++--
 .github/workflows/nightly-sql-parser.yml    |  5 ++++-
 .github/workflows/schedule-report.yml       | 10 ++++++++--
 12 files changed, 112 insertions(+), 28 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6a2653c3100..fc6439508ce 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -61,7 +61,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-
diff --git a/.github/workflows/e2e-agent.yml b/.github/workflows/e2e-agent.yml
index 4b547e8cd9d..31149e6aecb 100644
--- a/.github/workflows/e2e-agent.yml
+++ b/.github/workflows/e2e-agent.yml
@@ -60,7 +60,10 @@ jobs:
           java-version: 21
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-e2e-cache-${{ 
github.sha }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-e2e-cache-
@@ -129,7 +132,10 @@ jobs:
           java-version: 21
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-
diff --git a/.github/workflows/e2e-operation.yml 
b/.github/workflows/e2e-operation.yml
index 26f02a7c8b9..67edf70be45 100644
--- a/.github/workflows/e2e-operation.yml
+++ b/.github/workflows/e2e-operation.yml
@@ -92,7 +92,10 @@ jobs:
         if: (env.skip_current_step == 'false')
         uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-e2e-cache-${{ 
github.sha }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-e2e-cache-
diff --git a/.github/workflows/e2e-sql.yml b/.github/workflows/e2e-sql.yml
index 03189769e77..72d4a760664 100644
--- a/.github/workflows/e2e-sql.yml
+++ b/.github/workflows/e2e-sql.yml
@@ -64,7 +64,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-e2e-cache-${{ 
github.sha }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-e2e-cache-
@@ -117,7 +120,10 @@ jobs:
       - uses: actions/[email protected]
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-e2e-cache-${{ 
github.sha }}
       - uses: actions/[email protected]
         with:
diff --git a/.github/workflows/nightly-build.yml 
b/.github/workflows/nightly-build.yml
index e4249058839..e64da3f3665 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -48,7 +48,10 @@ jobs:
     steps:
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
@@ -88,7 +91,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
@@ -131,7 +137,10 @@ jobs:
           password: ${{ secrets.GITHUB_TOKEN }}
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
@@ -169,7 +178,10 @@ jobs:
           password: ${{ secrets.GITHUB_TOKEN }}
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
@@ -192,7 +204,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
@@ -251,7 +266,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
diff --git a/.github/workflows/nightly-check.yml 
b/.github/workflows/nightly-check.yml
index a18338180f4..7612c93b3cc 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -40,7 +40,10 @@ jobs:
       - uses: actions/[email protected]
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
@@ -98,7 +101,10 @@ jobs:
           languages: java
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
@@ -143,7 +149,10 @@ jobs:
       - uses: actions/[email protected]
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
@@ -162,7 +171,10 @@ jobs:
       - uses: actions/[email protected]
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('**/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
@@ -191,7 +203,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: shardingsphere-maven-third-party-e2e-cache-${{ github.sha }}
           restore-keys: |
             shardingsphere-maven-third-party-e2e-cache-
diff --git a/.github/workflows/nightly-ci.yml b/.github/workflows/nightly-ci.yml
index d9f63e42738..b6d72e91e58 100644
--- a/.github/workflows/nightly-ci.yml
+++ b/.github/workflows/nightly-ci.yml
@@ -53,7 +53,10 @@ jobs:
           java-version: ${{ matrix.java-version }}
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
@@ -85,7 +88,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
@@ -129,7 +135,10 @@ jobs:
           native-image-job-reports: 'true'
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
diff --git a/.github/workflows/nightly-e2e-agent.yml 
b/.github/workflows/nightly-e2e-agent.yml
index 27af823b2dd..9eaa455f38e 100644
--- a/.github/workflows/nightly-e2e-agent.yml
+++ b/.github/workflows/nightly-e2e-agent.yml
@@ -48,7 +48,10 @@ jobs:
           java-version: 21
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-e2e-cache-${{ 
github.sha }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-e2e-cache-
@@ -117,7 +120,10 @@ jobs:
           java-version: 21
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: apache-shardingsphere-maven-third-party-${{ 
hashFiles('**/pom.xml') }}
           restore-keys: |
             apache-shardingsphere-maven-third-party-
diff --git a/.github/workflows/nightly-e2e-operation.yml 
b/.github/workflows/nightly-e2e-operation.yml
index 682a442b448..311a1bc5857 100644
--- a/.github/workflows/nightly-e2e-operation.yml
+++ b/.github/workflows/nightly-e2e-operation.yml
@@ -70,7 +70,10 @@ jobs:
       - name: Retrieve Maven Caches
         uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-e2e-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-e2e-cache-
diff --git a/.github/workflows/nightly-e2e-sql.yml 
b/.github/workflows/nightly-e2e-sql.yml
index d7c1cca96c6..9c3ee9c70b7 100644
--- a/.github/workflows/nightly-e2e-sql.yml
+++ b/.github/workflows/nightly-e2e-sql.yml
@@ -48,7 +48,10 @@ jobs:
           java-version: 21
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-e2e-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-e2e-cache-
@@ -107,7 +110,10 @@ jobs:
       - uses: actions/[email protected]
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-e2e-cache-${{ github.sha }}
       - uses: actions/[email protected]
         with:
diff --git a/.github/workflows/nightly-sql-parser.yml 
b/.github/workflows/nightly-sql-parser.yml
index e87bb9bfb21..511c4aebd40 100644
--- a/.github/workflows/nightly-sql-parser.yml
+++ b/.github/workflows/nightly-sql-parser.yml
@@ -50,7 +50,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-${{ github.sha }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-cache-
diff --git a/.github/workflows/schedule-report.yml 
b/.github/workflows/schedule-report.yml
index 627bfbdf639..87f08c1ab07 100644
--- a/.github/workflows/schedule-report.yml
+++ b/.github/workflows/schedule-report.yml
@@ -49,7 +49,10 @@ jobs:
           restore-keys: ${{ runner.os }}-sonar
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('pom.xml','*/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-
@@ -75,7 +78,10 @@ jobs:
           java-version: 11
       - uses: actions/[email protected]
         with:
-          path: ~/.m2/repository
+          path: |
+            ~/.m2/repository
+            !~/.m2/repository/org/apache/shardingsphere
+            ~/.m2/repository/org/apache/shardingsphere/elasticjob
           key: ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-${{ hashFiles('pom.xml','*/pom.xml') }}
           restore-keys: |
             ${{ needs.global-environment.outputs.GLOBAL_CACHE_PREFIX 
}}-maven-third-party-

Reply via email to