diff --git a/action.yml b/action.yml index dc3b1aa..9182690 100644 --- a/action.yml +++ b/action.yml @@ -17,7 +17,8 @@ runs: uses: docker://docker.io/library/archlinux:base-devel with: entrypoint: bash - args: -c 'useradd user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && makepkg -s' + args: | + -c 'useradd user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && su -c "makepkg -s" - user' - name: Ensure .SRCINFO is up to date uses: docker://docker.io/library/archlinux:base-devel