mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
Set output cache-hit to indicate if cache was hit
This commit is contained in:
parent
a12e082d83
commit
01f97385c3
4 changed files with 8 additions and 0 deletions
2
dist/cleanup/index.js
vendored
2
dist/cleanup/index.js
vendored
|
@ -61873,9 +61873,11 @@ function restore(id) {
|
|||
]);
|
||||
if (matchedKey) {
|
||||
core.saveState(CACHE_MATCHED_KEY, matchedKey);
|
||||
core.setOutput('cache-hit', true);
|
||||
core.info(`Cache restored from key: ${matchedKey}`);
|
||||
}
|
||||
else {
|
||||
core.setOutput('cache-hit', false);
|
||||
core.info(`${packageManager.id} cache is not found`);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue