Fix cache lookup scenario
This commit is contained in:
1 parent
b39d23cb38
commit
2360eb3d26
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||||
|
|||||||
+1
-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(
|
||||||
|
|||||||
Reference in new issue
Block a user