From 1f02f54ad1643f3ce424b052b1d8340723a4baae Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Wed, 4 Sep 2024 14:14:35 -0500 Subject: [PATCH] don't remove git-templates also don't remove anthing in /usr/share for now --- .github/actions/clean-disk/action.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/actions/clean-disk/action.yml b/.github/actions/clean-disk/action.yml index 2790311..8053347 100644 --- a/.github/actions/clean-disk/action.yml +++ b/.github/actions/clean-disk/action.yml @@ -41,18 +41,19 @@ runs: $(non_manifest_packages) # > /dev/null fi - ( - GLOBIGNORE="/usr/share/git-core/**/*"; - sudo rm -rf \ - /var/lib/docker/ \ - "$AGENT_TOOLSDIRECTORY" \ - /opt \ - /usr/{local,share}/** - ) & - # { - # sudo swapoff -a - # sudo rm -f /mnt/swapfile - # } & + sudo rm -rf \ + /var/lib/docker/ \ + "$AGENT_TOOLSDIRECTORY" \ + /opt \ + /usr/local/** & + + # nix flake update wants to find git-core templates + # /usr/share/git-core/templates + # /usr/share/** + { + sudo swapoff -a + sudo rm -f /mnt/swapfile + } & wait echo "... done"