Skip to content

Commit b4882cc

Browse files
authored
Update action.yml
1 parent 4fd4766 commit b4882cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ runs:
77
run: |
88
if test -d /__e && grep -q '^ID=alpine$' /etc/os-release; then
99
apk add --no-cache -- docker-cli libstdc++
10-
docker run --rm --interactive --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -xes "$(docker inspect "$(hostname)" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" <<'EOF'
11-
find "$1" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- sh -xc 'docker run --rm --volume /:/hostfs "docker.io/library/node:$("$1" -e "console.log(process.versions.node)")-alpine" -e "fs.copyFileSync(process.execPath, process.argv[1])" -- "/hostfs/$1"' --
10+
docker run --rm --interactive --entrypoint /usr/sbin/chroot --volume /:/hostfs "$(docker inspect "$(hostname)" --format "{{ .Image }}")" /hostfs /bin/bash -eo pipefail -xs "$(hostname)" <<'EOF'
11+
find "$(docker inspect "$1" --format '{{ range.Mounts }}{{ if eq .Destination "/__e" }}{{ .Source }}{{ end }}{{ end }}')" -type f -executable -name 'node' -not -path '*_alpine/*' -print0 | xargs -0 -n 1 -- /bin/bash -eo pipefail -xc 'docker run --rm --volume /:/hostfs "docker.io/library/node:$("$1" -e "console.log(process.versions.node)")-alpine" -e "fs.copyFileSync(process.execPath, process.argv[1])" -- "/hostfs$1"' --
1212
EOF
1313
sed -i -e 's/^ID=alpine$/ID=linux/' /etc/os-release
1414
fi

0 commit comments

Comments
 (0)