mirror of
https://github.com/actions/cache.git
synced 2025-03-14 12:16:59 +00:00
Update examples for Java - Maven
When using the path `~/.m2/repositories` the cache action will never cache the maven packages. When changed to the new value we see valid caching happening.
This commit is contained in:
parent
d1255ad936
commit
150996106c
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba
|
||||||
- name: Cache local Maven repository
|
- name: Cache local Maven repository
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-
|
${{ runner.os }}-maven-
|
||||||
|
|
Loading…
Add table
Reference in a new issue