Skip to content

Commit

Permalink
Update cache-distributor.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Apr 3, 2022
1 parent 0723c44 commit 6078186
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cache-distributions/cache-distributor.ts
Expand Up @@ -45,13 +45,13 @@ abstract class CacheDistributor {
}

public handleMatchResult(matchedKey: string | undefined, primaryKey: string) {
if (matchedKey == primaryKey) {
if (matchedKey) {
core.saveState(State.CACHE_MATCHED_KEY, matchedKey);
core.info(`Cache restored from key: ${matchedKey}`);
} else {
core.info(`${this.packageManager} cache is not found`);
}
core.setOutput('cache-hit', Boolean(matchedKey));
core.setOutput('cache-hit', matchedKey === primaryKey);
}
}

Expand Down

0 comments on commit 6078186

Please sign in to comment.