File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ description: Setup Node.js environment for JavaScript Actions in Alpine containe
33runs :
44 using : composite
55 steps :
6- - if : runner.os == 'Linux'
6+ - if : runner.os == 'Linux' && job.container.id != null
77 run : |
8- if test -n '${{ job.container.id }}' && grep -q '^ID=alpine$' /etc/os-release; then
8+ if grep -q '^ID=alpine$' /etc/os-release; then
99 ROOT=$(mktemp -d)
1010 apk add --root "$ROOT" --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
1111 "$ROOT/usr/bin/docker" run --rm --net host --user 0:0 --volume /:/hostfs --entrypoint /usr/sbin/chroot "$("$ROOT/usr/bin/docker" inspect '${{ job.container.id }}' --format "{{ .Image }}")" /hostfs /bin/bash -xc \
You can’t perform that action at this time.
0 commit comments