Skip to content

Commit

Permalink
Better check for cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
wokalski committed Jul 29, 2020
1 parent 7382e66 commit bfc15cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const main = async () => {

run("Run esy install", "esy install");

if (!installCacheKey) {
if (installCacheKey != installKey) {
await cache.saveCache(installPath, installKey);
}

Expand Down Expand Up @@ -63,8 +63,8 @@ const main = async () => {
}

run("Run esy build", "esy build");
if (!buildCacheKey) {

if (buildCacheKey != buildKey) {
await cache.saveCache(depsPath, buildKey);
}

Expand Down

0 comments on commit bfc15cf

Please sign in to comment.