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

snazy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git


The following commit(s) were added to refs/heads/main by this push:
     new a44efddc7 CI: simplify `ci-incr-build-cache-save` action usage (#3626)
a44efddc7 is described below

commit a44efddc71cef95eb826894825cf9eae47ecd2cd
Author: Robert Stupp <[email protected]>
AuthorDate: Tue Feb 3 11:02:07 2026 +0100

    CI: simplify `ci-incr-build-cache-save` action usage (#3626)
---
 .github/actions/ci-incr-build-cache-save/action.yml |  3 +++
 .github/workflows/gradle.yml                        | 15 ---------------
 2 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/.github/actions/ci-incr-build-cache-save/action.yml 
b/.github/actions/ci-incr-build-cache-save/action.yml
index 7ce468b8f..476deaf9a 100644
--- a/.github/actions/ci-incr-build-cache-save/action.yml
+++ b/.github/actions/ci-incr-build-cache-save/action.yml
@@ -19,6 +19,7 @@ description: 'Save incremental Gradle caches'
 inputs:
   job-name:
     description: 'job name'
+    default: ${{ github.job }}
   java-version:
     description: 'Java version'
     default: '21'
@@ -27,6 +28,7 @@ runs:
   steps:
     - name: Prepare Gradle caches archive
       shell: bash
+      if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
       run: |
         if [[ -d ~/.gradle/caches/ ]] ; then
           echo "::group::Gradle caches / identify updated cache items"
@@ -62,6 +64,7 @@ runs:
         fi
     - name: Archive code-checks incremental
       uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # 
v6
+      if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
       with:
         name: ci-gradle-caches-${{ inputs.job-name }}-${{ inputs.java-version 
}}
         path: ~/ci-gradle-caches-${{ inputs.job-name }}-${{ 
inputs.java-version }}.tar
diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index 62bd23442..f2a31ddc3 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -69,9 +69,6 @@ jobs:
             -x intTest --continue
       - name: Save partial Gradle build cache
         uses: ./.github/actions/ci-incr-build-cache-save
-        if: github.event_name == 'push' && github.ref == 'refs/heads/main'
-        with:
-          job-name: 'unit-tests'
       - name: Archive test results
         uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f 
# v6
         if: always()
@@ -106,9 +103,6 @@ jobs:
           ./gradlew :polaris-runtime-service:test --continue
       - name: Save partial Gradle build cache
         uses: ./.github/actions/ci-incr-build-cache-save
-        if: github.event_name == 'push' && github.ref == 'refs/heads/main'
-        with:
-          job-name: 'quarkus-runtime-tests'
       - name: Archive test results
         uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f 
# v6
         if: always()
@@ -141,9 +135,6 @@ jobs:
           ./gradlew :polaris-runtime-service:intTest --continue
       - name: Save partial Gradle build cache
         uses: ./.github/actions/ci-incr-build-cache-save
-        if: github.event_name == 'push' && github.ref == 'refs/heads/main'
-        with:
-          job-name: 'quarkus-runtime-inttests'
       - name: Archive test results
         uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f 
# v6
         if: always()
@@ -176,9 +167,6 @@ jobs:
           ./gradlew :polaris-admin:test --continue
       - name: Save partial Gradle build cache
         uses: ./.github/actions/ci-incr-build-cache-save
-        if: github.event_name == 'push' && github.ref == 'refs/heads/main'
-        with:
-          job-name: 'quarkus-admin-tests'
       - name: Archive test results
         uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f 
# v6
         if: always()
@@ -218,9 +206,6 @@ jobs:
           DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
       - name: Save partial Gradle build cache
         uses: ./.github/actions/ci-incr-build-cache-save
-        if: github.event_name == 'push' && github.ref == 'refs/heads/main'
-        with:
-          job-name: 'integration-tests'
       - name: Archive test results
         uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f 
# v6
         if: always()

Reply via email to