diff --git a/action.yml b/action.yml index 9d1d3e3..246b4bb 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,7 @@ runs: with: entrypoint: bash args: | - -c 'useradd -m user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && chmod 777 . && su -c "makepkg -s" - user' + -c 'useradd -m user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && chmod 777 . && sudo -u user -- makepkg -s' - name: Ensure .SRCINFO is up to date uses: docker://docker.io/library/archlinux:base-devel