Add ubuntu user to runner!?
Jekyll / test-ci-actions (push) Failing after 18s
Details
Jekyll / test-ci-actions (push) Failing after 18s
Details
Signed-off-by: Benoit Donneaux <benoit@leastauthority.com>
This commit is contained in:
parent
f4169d494d
commit
dae2ef07c3
|
@ -27,6 +27,13 @@ jobs:
|
||||||
- name: Fix file permissions
|
- name: Fix file permissions
|
||||||
id: fix_permissions
|
id: fix_permissions
|
||||||
run: |
|
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 .
|
chown -R ubuntu:ubuntu .
|
||||||
- name: List files in the repository
|
- name: List files in the repository
|
||||||
id: list
|
id: list
|
||||||
|
|
Loading…
Reference in New Issue