Implement Jekyll CI workflow with docker #2
|
@ -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