Skip to content

Commit

Permalink
github: Don't purge aproxy snap when reclaiming disk space
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
roosterfish committed Nov 21, 2024
1 parent f9be34e commit 50fe938
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/reclaim-disk-space/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50fe938

Please sign in to comment.