Always save cache with same key if contents of cache directory change


I have a cache directory, that will frequently change contents on perhaps 50% of runs. I need to save that cache directory if the contents of it have have changed during the current run.

If the cache key remains the same circleci will not save the cache.

I read about {{ epoch }} but I am not sure I understand the usefulness of it, since I would not know the key name for the next run.

Does anyone have a solution for this?


This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.