mirror of
https://github.com/actions/cache.git
synced 2025-04-21 19:46:46 +00:00
Fix cacheEntry type
This commit is contained in:
parent
805d58ac4b
commit
7d1640d6a1
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ async function run(): Promise<void> {
|
|||
|
||||
try {
|
||||
const cacheEntry = await cacheHttpClient.getCacheEntry(keys);
|
||||
if (!cacheEntry) {
|
||||
if (!cacheEntry || !cacheEntry?.archiveLocation) {
|
||||
core.info(
|
||||
`Cache not found for input keys: ${keys.join(", ")}.`
|
||||
);
|
||||
|
@ -77,7 +77,7 @@ async function run(): Promise<void> {
|
|||
utils.setCacheState(cacheEntry);
|
||||
|
||||
// Download the cache from the cache entry
|
||||
await cacheHttpClient.downloadCache(cacheEntry, archivePath);
|
||||
await cacheHttpClient.downloadCache(cacheEntry?.archiveLocation, archivePath);
|
||||
|
||||
const archiveFileSize = utils.getArchiveFileSize(archivePath);
|
||||
core.info(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue