From 6f3012b48dd6d70b9a4747d60947753c24893f05 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 23 Dec 2024 10:36:17 +0000 Subject: [PATCH] [AUTO]Update CJS script Files changed: M dist/index.js --- dist/index.js | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/dist/index.js b/dist/index.js index 3d65a16..4744969 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27331,21 +27331,17 @@ async function run() { const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0; if (workspaceExists && workspaceNotEmpty) { - // Capture the entire command as a string - const command = `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`; - const commandArgs = [...options, `${workspacePath}\\${path}`]; - const fullCommand = `${command} ${commandArgs.join(" ")}`; - - // Log the full command being executed - console.log(`Executing command: ${fullCommand}`); - - execFile(command, commandArgs, (execError, stdout, stderr) => { - console.log(stdout); - if (execError) { - core.setFailed(`Execution failed with error: ${stderr}`); - process.exit(execError.code || 1); - } - }); + execFile( + `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`, + [...options, `${workspacePath}\\${path}`], + (execError, stdout, stderr) => { + console.log(stdout); + if (execError) { + core.setFailed(`Execution failed with error: ${stderr}`); + process.exit(execError.code || 1); + } + }, + ); } else { throw new Error( "The repository was not cloned. Please specify the actions/checkout action before this step.",