mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 06:32:56 +08:00
Fix cache lookup scenario
This commit is contained in:
parent
4dadd612d6
commit
de236da416
@ -357,7 +357,7 @@ test('restore with cache found for restore key', async () => {
|
||||
)
|
||||
expect(getCacheDownloadURLMock).toHaveBeenCalledWith({
|
||||
key,
|
||||
restoreKeys: restoreKeys,
|
||||
restoreKeys,
|
||||
version: cacheVersion
|
||||
})
|
||||
expect(createTempDirectoryMock).toHaveBeenCalledTimes(1)
|
||||
|
||||
2
packages/cache/src/cache.ts
vendored
2
packages/cache/src/cache.ts
vendored
@ -261,7 +261,7 @@ async function restoreCacheV2(
|
||||
|
||||
if (options?.lookupOnly) {
|
||||
core.info('Lookup only - skipping download')
|
||||
return request.key
|
||||
return response.matchedKey
|
||||
}
|
||||
|
||||
archivePath = path.join(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user