GitHub Cache with Maven project in subdirectory #26902
-
I had the following configuration of my GH Action workflow of a simple Maven project.
Everything used to work, till I move the Maven project into a
Now in the log I see the cache step says Does anyone know why the cache is not working with the project in a subdirectory? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @akefirad, Glad to see you in Github Community Forum! I followed your description and copied your code to my repo, however cache works fine after i move the project to subdirectory The
And GitHub will remove any cache entries that have not been accessed in over 7 days. Did you cache it recently? Please kindly have a double check and if the issue persists, please share your repo/sample repo for further investigation. Thanks |
Beta Was this translation helpful? Give feedback.
-
I’m pretty sure I checked it multiple times and didn’t see the cache being used. But you’re right. Now it’s working. Not sure if it was really because of #1 or #2. Sorry for the bother. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @akefirad,
Glad to see you in Github Community Forum!
I followed your description and copied your code to my repo, however cache works fine after i move the project to subdirectory
code
. My workflow here, and screenshot below:The
cache miss
typically appears in below situation:And GitHub will remove any cache entries that have not been accessed in over 7 days. Did you cache it recently?
Please kindly have a double check and if the issue persists, please share your repo/sample repo for further investigation.
Thanks