diff --git a/dist/index.js b/dist/index.js index 4744969..3d65a16 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27331,17 +27331,21 @@ async function run() { const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0; if (workspaceExists && workspaceNotEmpty) { - 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); - } - }, - ); + // 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); + } + }); } else { throw new Error( "The repository was not cloned. Please specify the actions/checkout action before this step.",