fix: run makepkg as non-root user in release-aur workflow
This commit is contained in:
1 parent
f42e63bcb3
commit
118d6a7202
1 file changed
+4
-2
@@ -84,8 +84,10 @@ jobs:
|
||||
run: |
|
||||
cd /tmp/aur-qbz-bin
|
||||
docker run --rm -v "$PWD":/pkg -w /pkg archlinux:latest bash -c "
|
||||
pacman -Sy --noconfirm pacman-contrib
|
||||
makepkg --printsrcinfo > .SRCINFO
|
||||
pacman -Sy --noconfirm pacman-contrib sudo
|
||||
useradd -m builder
|
||||
chown -R builder:builder /pkg
|
||||
sudo -u builder makepkg --printsrcinfo > .SRCINFO
|
||||
"
|
||||
cat .SRCINFO
|
||||
|
||||
|
||||
Reference in new issue
Block a user