Is there a way to tell the Actions cache to always cache at the end of the run, even if the key cache hit was successful? I am using Bazel, which provides incremental builds. Thus, by saving the whole bazel cache after each CI run, I can save a lot of time and only run what has changed, according the bazel.
I don’t want to use the git sha or anything in the cache key because that would mean the cache is evicted every time a new commit is pushed, which defeats the purpose of incremental builds with Bazel.
I know the caches resave if the cache-hit value is false. Is there a way to manually set this cache-hit value to false perhaps? Or is there another way to always update the cache after a CI build?