diff --git a/action.yml b/action.yml index 83af441..5844557 100644 --- a/action.yml +++ b/action.yml @@ -20,9 +20,12 @@ runs: args: | -euo pipefail -c ' pacman -Syu --noconfirm git - (cd ~; git clone https://aur.archlinux.org/yay.git; cd yay; makepkg -si --noconfirm) + useradd -m user echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user + + sudo -u user -- bash -c "cd ~ && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si --noconfirm" + chmod 777 . sudo -u user -- PACMAN=yay makepkg -s --noconfirm '