diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml index 1fe4b903..e18c2fee 100644 --- a/.github/workflows/artifacts.yml +++ b/.github/workflows/artifacts.yml @@ -26,6 +26,7 @@ jobs: - name: Setup and configure docker shell: 'script -q -e -c "bash {0}"' run: | + [[ $EUID -ne 0 ]] && exec sudo /bin/sh "$0" "$@" for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; \ do apt-get remove $pkg; \ done