Skip to content

Commit 2e4d86f

Browse files
committed
Github action: use newer Maven cache option
1 parent a041bcd commit 2e4d86f

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/maven.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,16 @@ jobs:
1616
timeout-minutes: 20
1717

1818
steps:
19-
- uses: actions/checkout@v2
19+
- uses: actions/checkout@v3
2020
- name: Set up JDK 17
21-
uses: actions/setup-java@v1
21+
uses: actions/setup-java@v3
2222
with:
23+
distribution: 'temurin'
2324
java-version: 17
25+
cache: 'maven'
2426
- name: Install httrack and ghostscript
2527
run: sudo apt-get install -y httrack ghostscript
2628
- name: Install pywb 2.7.2
2729
run: sudo pip install pywb==2.7.2
28-
- name: Cache local Maven repository
29-
uses: actions/cache@v2
30-
with:
31-
path: ~/.m2/repository
32-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
33-
restore-keys: |
34-
${{ runner.os }}-maven-
3530
- name: Build with Maven
3631
run: mvn -B verify package --file pom.xml

0 commit comments

Comments
 (0)