mirror of
https://code.forgejo.org/actions/cache.git
synced 2024-11-29 18:00:59 -05:00
Fix cacheEntry type
This commit is contained in:
parent
bad827c28e
commit
a8adbe4b05
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,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(", ")}.`
|
||||
);
|
||||
|
@ -78,7 +78,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…
Reference in a new issue