mirror of
				https://gitea.com/actions/cache.git
				synced 2025-11-02 07:47:08 +00:00 
			
		
		
		
	Format cache size and display on info (#85)
This commit is contained in:
		@@ -80,7 +80,11 @@ async function run(): Promise<void> {
 | 
			
		||||
            await cacheHttpClient.downloadCache(cacheEntry, archivePath);
 | 
			
		||||
 | 
			
		||||
            const archiveFileSize = utils.getArchiveFileSize(archivePath);
 | 
			
		||||
            core.debug(`File Size: ${archiveFileSize}`);
 | 
			
		||||
            core.info(
 | 
			
		||||
                `Cache Size: ~${Math.round(
 | 
			
		||||
                    archiveFileSize / (1024 * 1024)
 | 
			
		||||
                )} MB (${archiveFileSize} B)`
 | 
			
		||||
            );
 | 
			
		||||
 | 
			
		||||
            io.mkdirP(cachePath);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user