10000 Cache hit output by dhvcc · Pull Request #373 · actions/setup-python · GitHub
[go: up one dir, main page]

Skip to content

Cache hit output #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 5, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update cache-distributor.ts
  • Loading branch information
dhvcc committed Apr 4, 2022
commit 56d358493b02d27d77fc7a50178ff9c439c2051d
4 changes: 2 additions & 2 deletions src/cache-distributions/cache-distributor.ts
Original file line number Diff line number Diff line change
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