Skip to content

Commit af2e2dd

Browse files
committed
upgrade cache action to v4
1 parent e64c35b commit af2e2dd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ jobs:
3737
with:
3838
java-version: ${{ matrix.jdk }}
3939
- name: Cache Maven packages
40-
uses: actions/cache@v1
40+
uses: actions/cache@v4
4141
with:
42-
path: ~/.m2
43-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
44-
restore-keys: ${{ runner.os }}-m2
42+
path: ~/.m2/repository
43+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
44+
restore-keys: |
45+
${{ runner.os }}-maven-
4546
- name: JDK 8
4647
if: matrix.jdk == '8'
4748
run: mvn -B clean package -P travis jacoco:report -Dmaven.gitcommitid.skip=true

0 commit comments

Comments
 (0)