8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08415fd commit 56d3584Copy full SHA for 56d3584
src/cache-distributions/cache-distributor.ts
@@ -45,13 +45,13 @@ abstract class CacheDistributor {
45
}
46
47
public handleMatchResult(matchedKey: string | undefined, primaryKey: string) {
48
- if (matchedKey == primaryKey) {
+ if (matchedKey) {
49
core.saveState(State.CACHE_MATCHED_KEY, matchedKey);
50
core.info(`Cache restored from key: ${matchedKey}`);
51
} else {
52
core.info(`${this.packageManager} cache is not found`);
53
54
- core.setOutput('cache-hit', Boolean(matchedKey));
+ core.setOutput('cache-hit', matchedKey === primaryKey);
55
56
57
0 commit comments