Only one main build should persist gradle depdencies to GHA cache
MODIFY
.github/workflows/build-grpc-smoke-dist.yml
.github/workflows/build-grpc-smoke-dist.yml
@@ -27,6 +27,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: grpc-smoke
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/build-play-smoke-dist.yml
.github/workflows/build-play-smoke-dist.yml
@@ -27,6 +27,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: play-smoke
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/build-smoke-dist-fakebackend.yml
.github/workflows/build-smoke-dist-fakebackend.yml
@@ -26,6 +26,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: fakebackend-smoke
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/build-springboot-smoke-dist.yml
.github/workflows/build-springboot-smoke-dist.yml
@@ -27,6 +27,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: springboot-smoke
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/build-test-matrix.yml
.github/workflows/build-test-matrix.yml
@@ -26,6 +26,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: matrix-smoke
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/ci.yml
.github/workflows/ci.yml
@@ -67,6 +67,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: jdk${{ matrix.test-java-version }}
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -97,6 +98,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: latestDepTest
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -145,6 +147,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: smokeTests
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -199,6 +202,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: jdk11
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/nightly.yml
.github/workflows/nightly.yml
@@ -67,6 +67,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: jdk${{ matrix.test-java-version }}
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -97,6 +98,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: latestDepTest
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -145,6 +147,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: smokeTests
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/patch-release-build.yml
.github/workflows/patch-release-build.yml
@@ -79,6 +79,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: jdk${{ matrix.test-java-version }}
+ read-only: true
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -130,6 +131,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: smokeTests
+ read-only: true
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/pr.yml
.github/workflows/pr.yml
@@ -75,6 +75,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: jdk${{ matrix.test-java-version }}
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -138,6 +139,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: smokeTests
+ save-gradle-dependencies-cache: false
- name: Cache Gradle Wrapper
uses: actions/cache@v2

MODIFY
.github/workflows/release-build.yml
.github/workflows/release-build.yml
@@ -38,6 +38,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: jdk${{ matrix.test-java-version }}
+ read-only: true
- name: Cache Gradle Wrapper
uses: actions/cache@v2
@@ -87,6 +88,7 @@ jobs:
uses: burrunan/gradle-cache-action@v1.10
with:
job-id: smokeTests
+ read-only: true
- name: Cache Gradle Wrapper
uses: actions/cache@v2

Only one main build should persist gradle depdencies to GHA cache (#3593)