diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3db5a9198..2bd1296b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -118,7 +118,7 @@ jobs: sudo snap remove lxd --purge # Purge older snap revisions that are disabled/superseded by newer revisions of the same snap snap list --all | while read -r name _ rev _ _ notes _; do - [[ "${notes}" =~ disabled$ ]] && snap remove "${name}" --revision "${rev}" --purge + [[ "${notes}" =~ disabled$ ]] && sudo snap remove "${name}" --revision "${rev}" --purge done || true # This was inspired from https://github.com/easimon/maximize-build-space diff --git a/bin/helpers b/bin/helpers index 13f04fd4d..6b2bfe6e2 100644 --- a/bin/helpers +++ b/bin/helpers @@ -196,6 +196,7 @@ cleanup() { # Report some more information for diagnostic purposes snap list lxd uname -a + lxc list --all-projects # LXD daemon logs echo "::group::lxd logs"