mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 10:02:55 +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({
|
expect(getCacheDownloadURLMock).toHaveBeenCalledWith({
|
||||||
key,
|
key,
|
||||||
restoreKeys: restoreKeys,
|
restoreKeys,
|
||||||
version: cacheVersion
|
version: cacheVersion
|
||||||
})
|
})
|
||||||
expect(createTempDirectoryMock).toHaveBeenCalledTimes(1)
|
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) {
|
if (options?.lookupOnly) {
|
||||||
core.info('Lookup only - skipping download')
|
core.info('Lookup only - skipping download')
|
||||||
return request.key
|
return response.matchedKey
|
||||||
}
|
}
|
||||||
|
|
||||||
archivePath = path.join(
|
archivePath = path.join(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user