Add ubuntu user to runner!?
Jekyll / test-ci-actions (push) Failing after 18s Details

Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
bEn 2024-05-22 15:00:16 +02:00
parent f4169d494d
commit dae2ef07c3
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,13 @@ jobs:
- name: Fix file permissions
id: fix_permissions
run: |
export uid=1000
export gid=1000
export user=ubuntu
export group=ubuntu
id ${user} > /dev/null 2>&1 && \
{ groupmod -g "${gid}" "${group}" && usermod -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; } || \
{ groupadd -g "${gid}" "${group}" && useradd -md /home/${user} -s /bin/bash -g "${group}" -u "${uid}" "${user}"; }
chown -R ubuntu:ubuntu .
- name: List files in the repository
id: list