Skip to content

Commit

Permalink
Cleanup usages of gradle/gradle-build-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Jan 24, 2023
1 parent 2353037 commit e6b2900
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/changelog-print.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
with:
java-version: 11
distribution: 'temurin'
cache: 'gradle'
- name: gradle caching
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- run: ./gradlew changelogPrint
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
with:
distribution: "temurin"
java-version: 11
cache: gradle
- name: gradle caching
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: spotlessCheck
run: ./gradlew spotlessCheck --build-cache
- name: assemble testClasses
Expand Down Expand Up @@ -60,7 +63,10 @@ jobs:
with:
distribution: "temurin"
java-version: ${{ matrix.jre }}
cache: gradle
- name: gradle caching
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: build (maven-only)
if: matrix.kind == 'maven'
run: ./gradlew :plugin-maven:build -x spotlessCheck --build-cache
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ jobs:
with:
java-version: 11
distribution: 'temurin'
cache: 'gradle'
- name: gradle caching
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: publish all
if: "${{ github.event.inputs.to_publish == 'all' }}"
run: |
Expand Down

0 comments on commit e6b2900

Please sign in to comment.