-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade actions/cache to v2. #129
Comments
This is a bit confusing; this action doesn't use actions/cache (an action), instead it uses @actions/cache (a package on npm). The That means this action should already work fine in workflows triggered by any event with a GITHUB_REF. Do you have a workflow run log* where it failed in such a case? * preferably with ACTIONS_STEP_DEBUG enabled |
Oh interesting. Sorry for the misunderstanding there.
Then the step fails with:
|
Having the same issue here when using with:
|
Can you share workflow run logs? As well as the For both logs it would help a lot if they had ACTIONS_STEP_DEBUG enabled. |
Triggering through tags is also uncached: on:
push:
tags:
- v* |
Apparently the problem was that on each run I had a different env var. When I reran the job the cache was fetched |
Caching using actions/cache v1.x limits cacheable events to
push
andpull_request
as described here:https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#restrictions-for-accessing-a-cache
Using actions/cache v2.x will allow cacheable workflows on any event that has a GITHUB_REF.
At the moment, I can't have a cacheable workflow started by a
release
event. Making this change would facilitate this workflow.The text was updated successfully, but these errors were encountered: