From 9bd27bad477c9a140a0a1135423bd6b006002796 Mon Sep 17 00:00:00 2001 From: Jason Song Date: Sat, 14 Dec 2024 13:24:46 +0800 Subject: [PATCH] upgrade cache action version --- .github/workflows/build.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 38ce14daf9c..9c4c983eb62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,11 +37,12 @@ jobs: with: java-version: ${{ matrix.jdk }} - name: Cache Maven packages - uses: actions/cache@v1 + uses: actions/cache@v4 with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: JDK 8 if: matrix.jdk == '8' run: mvn -B clean package jacoco:report -Dmaven.gitcommitid.skip=true