Add cache restore dryRun option

This commit is contained in:
Marc Mueller committed 2023-02-21 12:37:48 +01:00
1 parent a04c721765
commit 0a9156fb4b
4 files changed
+65 -4

No files matched your search

+5
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)