cache-action
cache-action copied to clipboard
Avoid unnecessary cache updates
Currently in my workflows, I have the line below to remove various files which are not actually helpful to cache. It would be great if this could be integrated into the action directly to avoid unnecessary cache updates.
rm -rf "$HOME/.ivy2/local" || true
find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
find $HOME/.sbt -name "*.lock" -delete || true