Install package before checkout the repo
This commit is contained in:
@@ -13,12 +13,13 @@ jobs:
|
|||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup packages
|
||||||
|
run: pacman -Sy --noconfirm git pacman-contrib sudo nodejs
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup build user
|
- name: Setup build user
|
||||||
run: |
|
run: |
|
||||||
pacman -Sy --noconfirm git pacman-contrib sudo
|
|
||||||
useradd -m builduser
|
useradd -m builduser
|
||||||
echo "builduser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builduser
|
echo "builduser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builduser
|
||||||
chmod 0440 /etc/sudoers.d/builduser
|
chmod 0440 /etc/sudoers.d/builduser
|
||||||
|
|||||||
Reference in New Issue
Block a user