mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 12:12:55 +08:00
Fix cache misses
This commit is contained in:
parent
8d7ed4fb57
commit
7640cf17c1
4
packages/cache/src/cache.ts
vendored
4
packages/cache/src/cache.ts
vendored
@ -226,11 +226,11 @@ async function restoreCachev2(
|
|||||||
core.info(`Starting download of artifact to: ${paths[0]}`)
|
core.info(`Starting download of artifact to: ${paths[0]}`)
|
||||||
await StreamExtract(signedDownloadURL.blobs[0].signedUrl, paths[0])
|
await StreamExtract(signedDownloadURL.blobs[0].signedUrl, paths[0])
|
||||||
core.info(`Artifact download completed successfully.`)
|
core.info(`Artifact download completed successfully.`)
|
||||||
|
|
||||||
|
return keys[0]
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
throw new Error(`Unable to download and extract cache: ${error.message}`)
|
throw new Error(`Unable to download and extract cache: ${error.message}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return undefined
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user