1
0
Fork 0

Fix cache lookup scenario

pull/1876/head
Bassem Dghaidi 2024-11-25 05:47:51 -08:00 committed by GitHub
parent 4dadd612d6
commit de236da416
2 changed files with 327 additions and 327 deletions

View File

@ -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)

View File

@ -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(