nix-community / cache-nix-action

Cache Nix store in GitHub Actions to speed up workflows [maintainer=@deemp]
MIT License
29 stars 6 forks source link

[BUG] save-always input doesn't work #36

Open deemp opened 2 months ago

deemp commented 2 months ago

Describe the bug

I set save-always: true, but c-n-a didn't save the cache (link).

To Reproduce

Run linked workflow in a fork.

Expected behavior

The cache is saved despite an error on a step

Additional context

Currently, c-n-a implements save-always in a wrong way just like actions/cache does (https://github.com/actions/cache/issues/1315).

https://github.com/actions/cache/pull/1325 may fix the problem for actions/cache.