From eb533fc3df7667eecb117eafe720e211c83cce3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sat, 8 Jul 2023 17:59:52 +0200 Subject: [PATCH] Fix `cache: false`, closes #55 --- dist/index.js | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index fc4ce60..70b0334 100644 --- a/dist/index.js +++ b/dist/index.js @@ -64037,7 +64037,7 @@ async function main() { actions.setFailed('`with.cache` must be "true" or "false"'); return; } - const zigPath = await downloadZig(os.platform(), version3, Boolean(useCache)); + const zigPath = await downloadZig(os.platform(), version3, useCache === "true"); actions.addPath(zigPath); actions.info(`zig installed at ${zigPath}`); } diff --git a/index.js b/index.js index 3b9a066..6f55d2b 100644 --- a/index.js +++ b/index.js @@ -67,7 +67,7 @@ async function main () { return } - const zigPath = await downloadZig(os.platform(), version, Boolean(useCache)) + const zigPath = await downloadZig(os.platform(), version, useCache === 'true') // Add the `zig` binary to the $PATH actions.addPath(zigPath)