Fix cache lookup scenario

This commit is contained in:
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({
key,
restoreKeys: restoreKeys,
restoreKeys,
version: cacheVersion
})
expect(createTempDirectoryMock).toHaveBeenCalledTimes(1)

View File

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