cache
cache copied to clipboard
v4.0 save always not working
I have setup the save always to true such that the cache step should always fail even if one of the tasks fail. See screenshots below:
Save always set to true in step:
Then further in the job a step fails but the post cache step is not run unlike the post repositry setup:
Related to https://github.com/actions/cache/pull/1242
For context this is how I did save cache in v3:
I think we can also optimise like this to not attempt to save cache when there was a cache hit
I am also facing this issue. With save-always: true
, the Post Cache
is still skipped if the previous build step has failed:
We're observing the same issue. It just doesn't seem to work as documented.