mirror of https://github.com/actions/toolkit
Fix cache lookup scenario
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)
|
||||||
|
|
|
@ -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…
Reference in New Issue