Skip to content

Commit 95ca1ed

Browse files
committed
upgrade cache action version
1 parent 28d2898 commit 95ca1ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

+5-4
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 jacoco:report -Dmaven.gitcommitid.skip=true

0 commit comments

Comments
 (0)