From e3c28a8c944644a9e82126ccfd9e24774c7d14fe Mon Sep 17 00:00:00 2001 From: Huy Do Date: Thu, 2 Feb 2023 16:39:51 -0800 Subject: [PATCH] Clear conda and pip cache --- .github/actions/check-disk-space/action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/actions/check-disk-space/action.yml b/.github/actions/check-disk-space/action.yml index 00225cdbd9..0c9a3f5625 100644 --- a/.github/actions/check-disk-space/action.yml +++ b/.github/actions/check-disk-space/action.yml @@ -59,6 +59,11 @@ runs: # Also try to clean up torch.hub caching directory rm -rf "${HOME}/.cache/torch/hub" || true + # Purge conda + conda clean -p -t -y || true + # and pip cache + pip cache purge || true + echo "Re-run disk space check for ${RUNNER_OS} after cleaning up" # Re-run the check RESULT=$(check_disk_space)