Skip to content

Commit

Permalink
try spawn instead of execSync
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishkeshan committed Mar 25, 2024
1 parent 5b62ea6 commit 9f1b116
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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,

})
}

Expand Down

0 comments on commit 9f1b116

Please sign in to comment.