diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index a689bf74..324e9d26 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -96664,7 +96664,8 @@ function save(id) { const packageManager = findPackageManager(id); // Inputs are re-evaluated before the post action, so we want the original key used for restore const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY); - const cacheHit = core.getState(STATE_CACHE_HIT); + const cacheHitString = core.getState(STATE_CACHE_HIT); + const cacheHit = Boolean(cacheHitString); if (!primaryKey) { core.warning('Error retrieving key from state.'); return; diff --git a/dist/setup/index.js b/dist/setup/index.js index e2f31f16..87da0287 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -131913,7 +131913,8 @@ function save(id) { const packageManager = findPackageManager(id); // Inputs are re-evaluated before the post action, so we want the original key used for restore const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY); - const cacheHit = core.getState(STATE_CACHE_HIT); + const cacheHitString = core.getState(STATE_CACHE_HIT); + const cacheHit = Boolean(cacheHitString); if (!primaryKey) { core.warning('Error retrieving key from state.'); return; diff --git a/src/cache.ts b/src/cache.ts index 5fca2fb2..ac4c3be6 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -136,7 +136,8 @@ export async function save(id: string) { // Inputs are re-evaluated before the post action, so we want the original key used for restore const primaryKey = core.getState(STATE_CACHE_PRIMARY_KEY); - const cacheHit = core.getState(STATE_CACHE_HIT); + const cacheHitString = core.getState(STATE_CACHE_HIT); + const cacheHit = Boolean(cacheHitString); if (!primaryKey) { core.warning('Error retrieving key from state.');