From b034b26a443e7d8910e7ee72b6029579cabc4a3c Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Tue, 5 Nov 2019 15:24:22 -0500 Subject: [PATCH] Bump cache limit to 400MB (#61) --- README.md | 2 +- src/save.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9b5205b..e65cea6 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ See [Examples](examples.md) ## Cache Limits -Individual caches are limited to 200MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed. Caches that are not accessed within the last week will also be evicted. +Individual caches are limited to 400MB and a repository can have up to 2GB of caches. Once the 2GB limit is reached, older caches will be evicted based on when the cache was last accessed. Caches that are not accessed within the last week will also be evicted. ## Skipping steps based on cache-hit diff --git a/src/save.ts b/src/save.ts index f688e70..69e44cf 100644 --- a/src/save.ts +++ b/src/save.ts @@ -54,12 +54,12 @@ async function run() { core.debug(`Tar Path: ${tarPath}`); await exec(`"${tarPath}"`, args); - const fileSizeLimit = 200 * 1024 * 1024; // 200MB + const fileSizeLimit = 400 * 1024 * 1024; // 400MB const archiveFileSize = fs.statSync(archivePath).size; core.debug(`File Size: ${archiveFileSize}`); if (archiveFileSize > fileSizeLimit) { core.warning( - `Cache size of ${archiveFileSize} bytes is over the 200MB limit, not saving cache.` + `Cache size of ${archiveFileSize} bytes is over the 400MB limit, not saving cache.` ); return; }