diff --git a/dist/cleanup/index.js b/dist/cleanup/index.js index 6507c846..460651aa 100644 --- a/dist/cleanup/index.js +++ b/dist/cleanup/index.js @@ -61873,7 +61873,7 @@ function restore(id) { ]); if (matchedKey) { core.saveState(CACHE_MATCHED_KEY, matchedKey); - core.setOutput('cache-hit', true); + core.setOutput('cache-hit', matchedKey === primaryKey); core.info(`Cache restored from key: ${matchedKey}`); } else { diff --git a/dist/setup/index.js b/dist/setup/index.js index 468bd851..9be31b4a 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -18664,7 +18664,7 @@ function restore(id) { ]); if (matchedKey) { core.saveState(CACHE_MATCHED_KEY, matchedKey); - core.setOutput('cache-hit', true); + core.setOutput('cache-hit', matchedKey === primaryKey); core.info(`Cache restored from key: ${matchedKey}`); } else { diff --git a/src/cache.ts b/src/cache.ts index d79155fb..3948a5a4 100644 --- a/src/cache.ts +++ b/src/cache.ts @@ -77,7 +77,7 @@ export async function restore(id: string) { ]); if (matchedKey) { core.saveState(CACHE_MATCHED_KEY, matchedKey); - core.setOutput('cache-hit', true); + core.setOutput('cache-hit', matchedKey === primaryKey); core.info(`Cache restored from key: ${matchedKey}`); } else { core.setOutput('cache-hit', false);