From f9ddbe9a22e77d2124da196026d3ff9f02b7237b Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Mon, 11 Dec 2023 15:57:43 +0100 Subject: [PATCH] Update index.js --- dist/index.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/dist/index.js b/dist/index.js index 444228d..8c7c526 100644 --- a/dist/index.js +++ b/dist/index.js @@ -13,19 +13,13 @@ if (process.platform === 'win32') { if (fs.existsSync(process.env.GITHUB_WORKSPACE) && fs.readdirSync(workspacePath).length > 0) { exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'ignore' }, function (error, stdout, stderr) { console.log(stdout); - console.log(stderr); if (error) { - const code = error.code || 1; - process.exit(code); + core.error(stderr); } }); } else { - const code = 1; - console.error('Error: The repository was not cloned. Please specify the actions/checkout action before this step.'); - process.exit(code); + core.error('Error: The repository was not cloned. Please specify the actions/checkout action before this step.'); } } else { - const code = 1; - console.error('Error: This action is only supported on Windows!'); - process.exit(code); + core.error('Error: This action is only supported on Windows!'); }