mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-01 20:33:17 +08:00
Add cache restore dryRun option
This commit is contained in:
5
packages/cache/src/cache.ts
vendored
5
packages/cache/src/cache.ts
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user