From 50fe938187c5bb075504121846e43338a0faa974 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Peliz=C3=A4us?= Date: Thu, 21 Nov 2024 10:56:12 +0100 Subject: [PATCH] github: Don't purge aproxy snap when reclaiming disk space MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using this action on the Canonical runners (e.g. MicroCloud) we cannot purge the aproxy snap as it is a critical component to ensure connectivity between the runner and GitHub. Removing it will cause the runner to hang up. Signed-off-by: Julian Pelizäus --- .github/actions/reclaim-disk-space/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/reclaim-disk-space/action.yml b/.github/actions/reclaim-disk-space/action.yml index 66eaf73f9957..3eeb21456d1a 100644 --- a/.github/actions/reclaim-disk-space/action.yml +++ b/.github/actions/reclaim-disk-space/action.yml @@ -9,8 +9,9 @@ runs: run: | set -eux - # Purge snaps, if any - for s in $(snap list | awk '!/^(Name|core|snapd)/ {print $1}'); do + # Purge snaps, if any. + # The Canonical runners use aproxy for connectivity. + for s in $(snap list | awk '!/^(Name|core|snapd|aproxy)/ {print $1}'); do sudo snap remove --purge "${s}" || true done