mirror of
				https://gitea.com/actions/cache.git
				synced 2025-10-31 07:47:07 +00:00 
			
		
		
		
	Fix cacheEntry type
This commit is contained in:
		| @@ -61,7 +61,7 @@ async function run(): Promise<void> { | |||||||
|  |  | ||||||
|         try { |         try { | ||||||
|             const cacheEntry = await cacheHttpClient.getCacheEntry(keys); |             const cacheEntry = await cacheHttpClient.getCacheEntry(keys); | ||||||
|             if (!cacheEntry) { |             if (!cacheEntry || !cacheEntry?.archiveLocation) { | ||||||
|                 core.info( |                 core.info( | ||||||
|                     `Cache not found for input keys: ${keys.join(", ")}.` |                     `Cache not found for input keys: ${keys.join(", ")}.` | ||||||
|                 ); |                 ); | ||||||
| @@ -78,7 +78,7 @@ async function run(): Promise<void> { | |||||||
|             utils.setCacheState(cacheEntry); |             utils.setCacheState(cacheEntry); | ||||||
|  |  | ||||||
|             // Download the cache from the cache entry |             // Download the cache from the cache entry | ||||||
|             await cacheHttpClient.downloadCache(cacheEntry, archivePath); |             await cacheHttpClient.downloadCache(cacheEntry?.archiveLocation, archivePath); | ||||||
|  |  | ||||||
|             const archiveFileSize = utils.getArchiveFileSize(archivePath); |             const archiveFileSize = utils.getArchiveFileSize(archivePath); | ||||||
|             core.info( |             core.info( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Josh Gross
					Josh Gross