From 150996106c3d0dcc6545e9b2feb18744f3d8f069 Mon Sep 17 00:00:00 2001 From: Nathaniel Balas Date: Mon, 19 Oct 2020 17:23:47 +0200 Subject: [PATCH] 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. --- examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples.md b/examples.md index c66eca6..1e85031 100644 --- a/examples.md +++ b/examples.md @@ -150,7 +150,7 @@ We cache the elements of the Cabal store separately, as the entirety of `~/.caba - name: Cache local Maven repository uses: actions/cache@v2 with: - path: ~/.m2/repository + path: ~/.m2 key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}-maven-