From e83f1b78653ac03981ade50f094238baa3d66e35 Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Mon, 11 Dec 2023 15:19:38 +0100 Subject: [PATCH] Update index.js --- dist/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 42b1a66..8998db6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -10,8 +10,7 @@ const path = core.getInput('path'); var exec = require('child_process').exec; if (process.platform === 'win32') { - if (fs.existsSync(process.env.GITHUB_WORKSPACE)) { - console.log(`Path used: "${workspacePath}\\${path}"`); + if (workspacePath) { exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, { stdio: 'ignore' }, function (error, stdout, stderr) { console.log(stdout); console.log(stderr);