From 7d624e94874436fc075a119ce22a01004fba8710 Mon Sep 17 00:00:00 2001 From: Brendan Early Date: Sat, 23 May 2020 16:50:25 -0500 Subject: [PATCH] update main.js --- lib/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 9128294..d11366e 100644 --- a/lib/main.js +++ b/lib/main.js @@ -46,7 +46,7 @@ function run() { }; let emsdkFolder; let foundInCache = false; - if (emArgs.version !== "latest" && emArgs.noCache === "false") { + if (emArgs.version !== "latest" && emArgs.noCache === "false" && !emArgs.actionsCacheFolder) { emsdkFolder = yield tc.find('emsdk', emArgs.version, os.arch()); } const cacheKey = `${emArgs.version}-${os.arch()}`; @@ -91,7 +91,7 @@ function run() { yield exec.exec(`${emsdk} update-tags`); } yield exec.exec(`${emsdk} install ${emArgs.version}`); - if (emArgs.version !== "latest" && emArgs.version !== "tot" && emArgs.noCache === "false") { + if (emArgs.version !== "latest" && emArgs.version !== "tot" && emArgs.noCache === "false" && !emArgs.actionsCacheFolder) { yield tc.cacheDir(emsdkFolder, 'emsdk', emArgs.version, os.arch()); } }