Skip to content

Commit d227d60

Browse files
authored
Update action.yml
1 parent 67cfd4a commit d227d60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ description: Setup Node.js environment for JavaScript Actions in Alpine containe
33
runs:
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 \

0 commit comments

Comments
 (0)