diff --git a/dist/index.js b/dist/index.js index 9d1e92d..7c6612e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -38879,7 +38879,7 @@ const main = async () => { } core.endGroup(); run("Run esy install", "esy install"); - if (!installCacheKey) { + if (installCacheKey != installKey) { await cache.saveCache(installPath, installKey); } const ESY_FOLDER = esyPrefix ? esyPrefix : path.join(os.homedir(), ".esy"); @@ -38904,7 +38904,7 @@ const main = async () => { run("Run esy build-dependencies", "esy build-dependencies"); } run("Run esy build", "esy build"); - if (!buildCacheKey) { + if (buildCacheKey != buildKey) { await cache.saveCache(depsPath, buildKey); } if (!buildCacheKey) { diff --git a/index.ts b/index.ts index bf95296..8f3f7a0 100644 --- a/index.ts +++ b/index.ts @@ -33,7 +33,7 @@ const main = async () => { run("Run esy install", "esy install"); - if (!installCacheKey) { + if (installCacheKey != installKey) { await cache.saveCache(installPath, installKey); } @@ -63,8 +63,8 @@ const main = async () => { } run("Run esy build", "esy build"); - - if (!buildCacheKey) { + + if (buildCacheKey != buildKey) { await cache.saveCache(depsPath, buildKey); }