From c8c5165c99bce7089b8ec1144f6659c5f84cfe12 Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 25 Mar 2023 13:53:10 +0100 Subject: [PATCH] makepkg is annoying --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 '