From c70d1c0f992586cbf986f85897b723e670434c2f Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Sat, 8 Jul 2023 14:24:17 +0200 Subject: [PATCH] Update index.js --- dist/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 014684c..5f0fecf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,5 @@ const core = require('@actions/core'); +// eslint-disable-next-line no-unused-vars const github = require('@actions/github'); const { exit } = require('process'); @@ -14,6 +15,7 @@ exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${path}"`, console.log(stderr); } )} else { +const code = 1; console.error('Error: this action is only supported on Windows!') -code = 1; process.exit(code); +process.exit(code); }