From a356059055bfdc91c30bf1e4890da610c39174fc Mon Sep 17 00:00:00 2001 From: Art <4998038+Alorel@users.noreply.github.com> Date: Thu, 21 Sep 2023 23:37:10 +0100 Subject: [PATCH] fix: Fix `force-version` option not being respected --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 90ba997..59049f7 100644 --- a/index.js +++ b/index.js @@ -5,10 +5,11 @@ try { const name = getInput('name', {required: true}); const version = getInput('version'); const release = getBooleanInput('release'); + const forceVersion = getBooleanInput('force-version'); const alreadyInstalled = getInstalledVersion(name); - if (version && alreadyInstalled && alreadyInstalled === version) { + if (alreadyInstalled && (!forceVersion || (version && alreadyInstalled === version))) { info(`Already installed ${name}@${alreadyInstalled}`); return; }