From 7e8be0eddf1d0ff25d93b09d616da351b31d90cc Mon Sep 17 00:00:00 2001 From: Tom Wieczorek Date: Wed, 11 Oct 2023 13:49:11 +0200 Subject: [PATCH] Sudo Signed-off-by: Tom Wieczorek --- .github/workflows/cleaner.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cleaner.yml b/.github/workflows/cleaner.yml index 06acfeb5fa71..a12b18b97bbc 100644 --- a/.github/workflows/cleaner.yml +++ b/.github/workflows/cleaner.yml @@ -45,28 +45,28 @@ jobs: df -h for pkg in $APT_PACKAGES_TO_REMOVE; do - apt-get purge -y -- "$pkg" + sudo -E apt-get purge -y -- "$pkg" done df -h - apt-get autoremove -y - apt-get autoclean -y + sudo -E apt-get autoremove -y + sudo -E apt-get autoclean -y df -h for path in ENV_PATHS_TO_RM; do path="${!path}" || continue - [ -z "$path" ] || rm -rf -- "$path" + [ -z "$path" ] || sudo rm -rf -- "$path" done df -h - rm -rf /home/linuxbrew + sudo rm -rf /home/linuxbrew df -h - find / -type f -mount > files + find / -type f -mount | tee files - uses: actions/upload-artifact@v3 with: