Add cache restore dryRun option

This commit is contained in:
Marc Mueller
2022-12-23 12:44:35 +01:00
parent 0db3029fcf
commit eb06c21794
4 changed files with 65 additions and 4 deletions

View File

@@ -100,6 +100,11 @@ export async function restoreCache(
return undefined
}
if (options?.dryRun) {
core.info('Dry run - skipping download')
return cacheEntry.cacheKey
}
archivePath = path.join(
await utils.createTempDirectory(),
utils.getCacheFileName(compressionMethod)