From 13661fbace00ea4c64474da32a58301c214f0bc2 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 23 Dec 2024 12:11:33 +0000 Subject: [PATCH] [AUTO]Update CJS script Files changed: M dist/index.js --- dist/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 4744969..35aaf34 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27314,6 +27314,10 @@ const workspacePath = process.env.GITHUB_WORKSPACE; const options = core.getMultilineInput("options"); const path = core.getInput("path"); +const sanitizeArgument = (arg) => { + return arg.replace(/\\"/g, '"'); +}; + let repoError; let platformError; @@ -27331,9 +27335,11 @@ async function run() { const workspaceNotEmpty = (await fs.readdir(workspacePath)).length > 0; if (workspaceExists && workspaceNotEmpty) { + const sanitizedOptions = options.map(sanitizeArgument); + execFile( `${process.env["ProgramFiles(x86)"]}\\Inno Setup 6\\iscc.exe`, - [...options, `${workspacePath}\\${path}`], + [...sanitizedOptions, `${workspacePath}\\${path}`], (execError, stdout, stderr) => { console.log(stdout); if (execError) {