Skip to content

Commit 021f9e1

Browse files
authored
Cleanup caching in GitHub Actions gradle/gradle-build-action (#1518)
2 parents 65e36a8 + e6b2900 commit 021f9e1

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/changelog-print.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
with:
1616
java-version: 11
1717
distribution: 'temurin'
18-
cache: 'gradle'
1918
- name: gradle caching
2019
uses: gradle/gradle-build-action@v2
20+
with:
21+
gradle-home-cache-cleanup: true
2122
- run: ./gradlew changelogPrint

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ jobs:
2626
with:
2727
distribution: "temurin"
2828
java-version: 11
29-
cache: gradle
29+
- name: gradle caching
30+
uses: gradle/gradle-build-action@v2
31+
with:
32+
gradle-home-cache-cleanup: true
3033
- name: spotlessCheck
3134
run: ./gradlew spotlessCheck --build-cache
3235
- name: assemble testClasses
@@ -60,7 +63,10 @@ jobs:
6063
with:
6164
distribution: "temurin"
6265
java-version: ${{ matrix.jre }}
63-
cache: gradle
66+
- name: gradle caching
67+
uses: gradle/gradle-build-action@v2
68+
with:
69+
gradle-home-cache-cleanup: true
6470
- name: build (maven-only)
6571
if: matrix.kind == 'maven'
6672
run: ./gradlew :plugin-maven:build -x spotlessCheck --build-cache

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ jobs:
4242
with:
4343
java-version: 11
4444
distribution: 'temurin'
45-
cache: 'gradle'
4645
- name: gradle caching
4746
uses: gradle/gradle-build-action@v2
47+
with:
48+
gradle-home-cache-cleanup: true
4849
- name: publish all
4950
if: "${{ github.event.inputs.to_publish == 'all' }}"
5051
run: |

0 commit comments

Comments
 (0)