use sudo instead of su

This commit is contained in:
Dominic 2023-03-25 13:43:01 +01:00
parent 217a154fc4
commit ee4e812e7f
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -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