mirror of
https://github.com/actions/cache.git
synced 2026-09-30 16:48:53 +00:00
Format cache size and display on info (#85)
This commit is contained in:
1 parent
7e7aef2963
commit
bb828da54c
3 files changed
+11
-3
No files matched your search
+3
-1
@@ -57,7 +57,9 @@ async function run(): Promise<void> {
|
||||
core.debug(`File Size: ${archiveFileSize}`);
|
||||
if (archiveFileSize > fileSizeLimit) {
|
||||
core.warning(
|
||||
`Cache size of ${archiveFileSize} bytes is over the 400MB limit, not saving cache.`
|
||||
`Cache size of ~${Math.round(
|
||||
archiveFileSize / (1024 * 1024)
|
||||
)} MB (${archiveFileSize} B) is over the 400MB limit, not saving cache.`
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user