mirror of
https://github.com/actions/setup-python.git
synced 2025-07-05 17:13:46 +00:00
Fix tests and rebuild
This commit is contained in:
parent
56d358493b
commit
168d1eac87
3 changed files with 12 additions and 11 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -42583,14 +42583,14 @@ class CacheDistributor {
|
|||
});
|
||||
}
|
||||
handleMatchResult(matchedKey, primaryKey) {
|
||||
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);
|
||||
}
|
||||
}
|
||||
exports.default = CacheDistributor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue