From 9f1b116684b06473a928a384c37a2d3193556293 Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Mon, 25 Mar 2024 15:13:39 -0400 Subject: [PATCH] try spawn instead of execSync --- src/main.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main.js b/src/main.js index b2b46f62..ce5692a8 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,6 @@ const {execSync} = require('child_process') const core = require('@actions/core') +const {spawn} = require('child_process') const env = { PATH: process.env.PATH, @@ -90,11 +91,9 @@ function run() { inputs = getInputs() if (inputs.setupCommand) { - execSync(inputs.setupCommand, { - timeout: inputs.timeout, - stdio: 'ignore', + spawn(inputs.setupCommand, { + shell: true, env, - }) }