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
3
3
runs :
4
4
using : composite
5
5
steps :
6
- - if : runner.os == 'Linux'
6
+ - if : runner.os == 'Linux' && job.container.id != null
7
7
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
9
9
ROOT=$(mktemp -d)
10
10
apk add --root "$ROOT" --repositories-file /etc/apk/repositories --allow-untrusted --no-cache --no-scripts --initdb -- docker-cli
11
11
"$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