Skip to content

Commit 3465341

Browse files
Fix maven build caching
1 parent 5035bd3 commit 3465341

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/maven.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,14 @@ jobs:
2121

2222
steps:
2323
- uses: actions/checkout@v3
24+
- name: Cache Maven
25+
id: cache-primes
26+
uses: actions/cache@v3
27+
with:
28+
path: |
29+
~/.m2
30+
~/repository
31+
key: "latest-build"
2432
- name: Set up JDK 8
2533
uses: actions/setup-java@v3
2634
with:
@@ -50,7 +58,7 @@ jobs:
5058
path: |
5159
~/.m2
5260
~/repository
53-
key: ${{ github.job }}-${{ hashFiles('**/pom.xml') }}
61+
key: "latest-build"
5462

5563
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
5664
- name: Update dependency graph

0 commit comments

Comments
 (0)