From 86dff562ab522d4b40945cd4cd51c5d4b4b40cbc Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Tue, 5 Nov 2019 15:43:33 -0500 Subject: [PATCH] v1.0.1 release binaries --- dist/restore/index.js | 7 +++++-- dist/save/index.js | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dist/restore/index.js b/dist/restore/index.js index 6074ef1..53f1ec6 100644 --- a/dist/restore/index.js +++ b/dist/restore/index.js @@ -2972,7 +2972,10 @@ function run() { core.debug(`Cache Path: ${cachePath}`); const primaryKey = core.getInput(constants_1.Inputs.Key, { required: true }); core.saveState(constants_1.State.CacheKey, primaryKey); - const restoreKeys = core.getInput(constants_1.Inputs.RestoreKeys).split("\n"); + const restoreKeys = core + .getInput(constants_1.Inputs.RestoreKeys) + .split("\n") + .filter(x => x !== ""); const keys = [primaryKey, ...restoreKeys]; core.debug("Resolved Keys:"); core.debug(JSON.stringify(keys)); @@ -2994,7 +2997,7 @@ function run() { try { const cacheEntry = yield cacheHttpClient.getCacheEntry(keys); if (!cacheEntry) { - core.info(`Cache not found for input keys: ${JSON.stringify(keys)}.`); + core.info(`Cache not found for input keys: ${keys.join(", ")}.`); return; } let archivePath = path.join(yield utils.createTempDirectory(), "cache.tgz"); diff --git a/dist/save/index.js b/dist/save/index.js index 049a5c8..79c5e1c 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -2889,11 +2889,11 @@ function run() { const tarPath = yield io.which("tar", true); core.debug(`Tar Path: ${tarPath}`); yield exec_1.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.`); + core.warning(`Cache size of ${archiveFileSize} bytes is over the 400MB limit, not saving cache.`); return; } const stream = fs.createReadStream(archivePath);