cache-action icon indicating copy to clipboard operation
cache-action copied to clipboard

Avoid unnecessary cache updates

Open michaelmior opened this issue 1 year ago • 0 comments

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

michaelmior avatar Jul 18 '24 14:07 michaelmior