From c7ec74200cd38d9d8c7574bb66fcfcef4bac2afc Mon Sep 17 00:00:00 2001 From: David Hadka Date: Sat, 1 Feb 2020 00:00:04 -0500 Subject: [PATCH] Increase cache limit to 5 GBs --- src/save.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/save.ts b/src/save.ts index ee64e42..f20dbcc 100644 --- a/src/save.ts +++ b/src/save.ts @@ -56,14 +56,14 @@ async function run(): Promise { await createTar(archivePath, cachePath); - const fileSizeLimit = 2 * 1024 * 1024 * 1024; // 2GB per repo limit + const fileSizeLimit = 5 * 1024 * 1024 * 1024; // 2GB per repo limit const archiveFileSize = utils.getArchiveFileSize(archivePath); core.debug(`File Size: ${archiveFileSize}`); if (archiveFileSize > fileSizeLimit) { utils.logWarning( `Cache size of ~${Math.round( archiveFileSize / (1024 * 1024) - )} MB (${archiveFileSize} B) is over the 2GB limit, not saving cache.` + )} MB (${archiveFileSize} B) is over the 5GB limit, not saving cache.` ); return; }