It is my understanding, that actions/setup-java uses the same caching mechanism as actions/cache. However I fail to restore my ~/.m2/repository from cache created by setup-java.
Workflow 1
My first workflow run uses the following config to cache my ~/.m2/repository:
Cache not found for input keys: dependency-check-c4ff49b329ba24e6b9da26450d2b793e3d91853c334abd09f9ba075ef65fceff, setup-java-Linux-maven-c4ff49b329ba24e6b9da26450d2b793e3d91853c334abd09f9ba075ef65fceff, setup-java-Linux-maven-.
It is my understanding, that
actions/setup-java
uses the same caching mechanism asactions/cache
. However I fail to restore my~/.m2/repository
from cache created bysetup-java
.Workflow 1
My first workflow run uses the following config to cache my
~/.m2/repository
:Workflow 2
But a consecutive run of a workflow (on the same repo) leads to a cache miss with the following config: