Skip to content

Commit b916160

Browse files
committed
Use built-in Maven cache of actions/setup-java
1 parent 08dc30e commit b916160

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ jobs:
2727
with:
2828
distribution: 'zulu'
2929
java-version: ${{ matrix.java_version }}
30-
- uses: actions/cache@v2.1.7
31-
with:
32-
path: ~/.m2/repository
33-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34-
restore-keys: |
35-
${{ runner.os }}-maven-
30+
cache: 'maven'
3631
- name: Cache SonarCloud packages
3732
uses: actions/cache@v2.1.7
3833
if: ${{ env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' && matrix.java_version == '11' }}

0 commit comments

Comments
 (0)