mirror of
https://github.com/actions/cache.git
synced 2025-04-20 11:06:46 +00:00
Format cache size and display on info (#85)
This commit is contained in:
parent
7e7aef2963
commit
bb828da54c
3 changed files with 11 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue