From c0ac3673265caa2bffa461484283b619a8abbcdd Mon Sep 17 00:00:00 2001 From: Dominic Date: Sat, 25 Mar 2023 13:51:03 +0100 Subject: [PATCH] use yay instead of pacman --- action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index bb5d8b2..83af441 100644 --- a/action.yml +++ b/action.yml @@ -18,7 +18,14 @@ runs: with: entrypoint: bash args: | - -c 'useradd -m user && echo "user ALL=(ALL:ALL) NOPASSWD: ALL" >/etc/sudoers.d/user && chmod 777 . && pacman -Syu --noconfirm && sudo -u user -- makepkg -s' + -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 + chmod 777 . + sudo -u user -- PACMAN=yay makepkg -s --noconfirm + ' - name: Ensure .SRCINFO is up to date uses: docker://docker.io/library/archlinux:base-devel