Skip to content

Commit

Permalink
Fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
placintaalexandru committed Oct 17, 2023
1 parent 29fd492 commit fa95717
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/entrypoint/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
4 changes: 3 additions & 1 deletion src/entrypoint.ts
Original file line number Diff line number Diff line change
@@ -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();

0 comments on commit fa95717

Please sign in to comment.