Is there a way to store cache after some special step and then continue workflow ?
I have a job with the steps like:
job:
steps:
- checkout
- actions/cache@v2
- build
#- I'd like to store cache at this moment
- test
Is there a way to store cache after some special step and then continue workflow ?
Same. Use case: install pnpm modules and then immediately store cache, before running the actual job which might fail
This issue is stale because it has been open for 200 days with no activity. Leave a comment to avoid closing this issue in 5 days.
I worked around it with a separate step that doesn't run the build. It's not great because you do a teardown in between but ok.
@wmertens did you solve the problem? Let us look at it.
+1
Same. Use case: install pnpm modules and then immediately store cache, before running the actual job which might fail
@wmertens can you please me understand better why would the job fail here?
@tanuj077 even something as simple as eslint failing should fail the job but retain the cache
@wmertens Is the ask similar to https://github.com/actions/cache/issues/272
@kotewar yes this seems to be a duplicate
Closing as duplicate, we'll post further updates in #272.
Hey all, 👋🏽
We have created a discussion with a proposal that we feel will solve this problem, do let us know your feedback, thanks 😊