Merge branch 'actions:main' into suggest-clear-cache-after-dependency-update

This commit is contained in:
Mario Schünadel 2022-04-19 12:45:13 +02:00 committed by GitHub
commit 83b77aa58b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 14410 additions and 4748 deletions

View file

@ -76,8 +76,10 @@ export async function restore(id: string) {
const matchedKey = await cache.restoreCache(packageManager.path, primaryKey);
if (matchedKey) {
core.saveState(CACHE_MATCHED_KEY, matchedKey);
core.setOutput('cache-hit', matchedKey === primaryKey);
core.info(`Cache restored from key: ${matchedKey}`);
} else {
core.setOutput('cache-hit', false);
core.info(`${packageManager.id} cache is not found`);
}
}