Closed omus closed 2 weeks ago
Usually the post
step is conditionally run based upon the post-if
setting. As pyTooling/Actions/with-post-step
doesn't specify this I'm not sure we can fix can this beyond setting save-always
.
I think the way we'll have to address this is to always leave the latest cache entry remaining. That way if we are cleaning up cache entries on a failed job we avoid cleaning up the last entry.
If the CI job you are running with
julia-actions/cache
fails withdelete-old-caches: true
the cache entry used by that CI job will be deleted and no new cache entry will be uploaded as theactions/cache
post-step only runs on successful jobs.This results in slower subsequent re-runs as we'll end up restoring a cache entry from the base branch if one is available.