Skip to content

Commit

Permalink
apply fix to restoreCache
Browse files Browse the repository at this point in the history
  • Loading branch information
deemp committed Jul 17, 2023
1 parent 805a5d2 commit ff1eb35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/restoreImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,16 @@ async function restoreImpl(
const lookupOnly = utils.getInputAsBool(Inputs.LookupOnly);

const cacheKey = await cache.restoreCache(
cachePaths,
// https://github.com/actions/toolkit/pull/1378#issuecomment-1478388929
cachePaths.slice(),
primaryKey,
restoreKeys,
{ lookupOnly: lookupOnly },
enableCrossOsArchive
);

core.info(`Primary key: ${primaryKey}`)
core.info(`Existing cache key: ${cacheKey}`)
core.info(`Primary key: ${primaryKey}`);
core.info(`Existing cache key: ${cacheKey}`);

if (!cacheKey) {
if (failOnCacheMiss) {
Expand Down

0 comments on commit ff1eb35

Please sign in to comment.