diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e2d89563..0f058985 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -60,5 +60,5 @@ jobs: - name: Delete cache if too big run: | source delete_cache_if_too_big.sh - delete_cache_if_too_big ~/.cache/nce 512 - delete_cache_if_too_big ~/.cache/pants/named_caches 1024 + delete_cache_if_too_big /home/runner/work/_temp/_github_home/.cache/nce 512 + delete_cache_if_too_big /home/runner/work/_temp/_github_home/.cache/pants/named_caches 1024 diff --git a/delete_cache_if_too_big.sh b/delete_cache_if_too_big.sh index ffc5c611..02963d29 100644 --- a/delete_cache_if_too_big.sh +++ b/delete_cache_if_too_big.sh @@ -3,7 +3,7 @@ function delete_cache_if_too_big() { limit_mb=$2 size_mb=$(du -m -d0 "${path}" | cut -f 1) if (( size_mb > limit_mb )); then - echo "${path} is too large (${size_mb}mb), nuking it." + echo "${path} is too large (${size_mb}mb), deleting it." rm -rf "${path}" fi } \ No newline at end of file