use sudo instead of su
This commit is contained in:
parent
217a154fc4
commit
ee4e812e7f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue