diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index abac3d7f66f..de4c28af7de 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -76,6 +76,11 @@ jobs: - name: Bump to version uses: gradle/gradle-build-action@v2 + env: + # Same as for ci.yml + GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT: java-11 + GRADLE_BUILD_ACTION_CACHE_KEY_JOB: nessie-ci + GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE: ci with: cache-read-only: true arguments: :bumpVersion --bumpType ${{ env.BUMP_TYPE }} diff --git a/.github/workflows/ci-mac.yml b/.github/workflows/ci-mac.yml index 0ff3ff77114..c58a65e39c8 100644 --- a/.github/workflows/ci-mac.yml +++ b/.github/workflows/ci-mac.yml @@ -91,6 +91,11 @@ jobs: - name: Gradle / compile uses: gradle/gradle-build-action@v2 + env: + # Same as for ci.yml + GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT: java-11 + GRADLE_BUILD_ACTION_CACHE_KEY_JOB: nessie-ci + GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE: ci with: cache-read-only: true arguments: assemble --scan diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index 5e3eceeacae..ac3496bc60b 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -82,6 +82,11 @@ jobs: - name: Gradle / compile uses: gradle/gradle-build-action@v2 + env: + # Same as for ci.yml + GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT: java-11 + GRADLE_BUILD_ACTION_CACHE_KEY_JOB: nessie-ci + GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE: ci with: cache-read-only: true arguments: assemble --scan diff --git a/.github/workflows/newer-java.yml b/.github/workflows/newer-java.yml index 1799964993a..eef0c720936 100644 --- a/.github/workflows/newer-java.yml +++ b/.github/workflows/newer-java.yml @@ -26,7 +26,13 @@ jobs: uses: ./.github/actions/setup-runner - name: Setup Java, Gradle uses: ./.github/actions/dev-tool-java + env: + # Same as for ci.yml + GRADLE_BUILD_ACTION_CACHE_KEY_ENVIRONMENT: java-11 + GRADLE_BUILD_ACTION_CACHE_KEY_JOB: nessie-ci + GRADLE_BUILD_ACTION_CACHE_KEY_JOB_INSTANCE: ci with: + cache-read-only: true java-version: ${{ matrix.java-version }} - name: Gradle / compile diff --git a/.github/workflows/snapshot-publish.yml b/.github/workflows/snapshot-publish.yml index 23647da8e43..8281e0539dc 100644 --- a/.github/workflows/snapshot-publish.yml +++ b/.github/workflows/snapshot-publish.yml @@ -33,7 +33,7 @@ jobs: ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_TOKEN }} uses: gradle/gradle-build-action@v2 with: - cache-read-only: true + cache-disabled: true arguments: | publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease -Puber-jar