diff --git a/dist/entrypoint/index.js b/dist/entrypoint/index.js index ab88479d..e1747fa3 100644 --- a/dist/entrypoint/index.js +++ b/dist/entrypoint/index.js @@ -1258,8 +1258,10 @@ var __importStar = (this && this.__importStar) || function (mod) { }; Object.defineProperty(exports, "__esModule", ({ value: true })); const exec = __importStar(__nccwpck_require__(514)); +const io = __importStar(__nccwpck_require__(351)); async function main() { - await exec.exec("node", ["./dist/main/index.js", "rustup"]); + const exePath = await io.which("node", true); + await exec.exec(exePath, ["./dist/main/index.js", "rustup"]); } void main(); diff --git a/src/entrypoint.ts b/src/entrypoint.ts index a9e25094..f0a20f40 100644 --- a/src/entrypoint.ts +++ b/src/entrypoint.ts @@ -1,7 +1,9 @@ import * as exec from "@actions/exec"; +import * as io from "@actions/io"; async function main() { - await exec.exec("node", ["./dist/main/index.js", "rustup"]); + const exePath = await io.which("node", true); + await exec.exec(exePath, ["./dist/main/index.js", "rustup"]); } void main();