From 26968a09c0ea4f3e233fdddbafd1166051a095f6 Mon Sep 17 00:00:00 2001 From: Yaroslav Dynnikov Date: Thu, 4 Feb 2021 01:07:49 +0300 Subject: [PATCH] Make save/restore logs akin (#509) - Print primary key when saving cache --- dist/save/index.js | 1 + src/save.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/save/index.js b/dist/save/index.js index 1f6533a..853a18f 100644 --- a/dist/save/index.js +++ b/dist/save/index.js @@ -45471,6 +45471,7 @@ function run() { yield cache.saveCache(cachePaths, primaryKey, { uploadChunkSize: utils.getInputAsInt(constants_1.Inputs.UploadChunkSize) }); + core.info(`Cache saved with key: ${primaryKey}`); } catch (error) { if (error.name === cache.ValidationError.name) { diff --git a/src/save.ts b/src/save.ts index 1efbc24..5e52249 100644 --- a/src/save.ts +++ b/src/save.ts @@ -44,6 +44,7 @@ async function run(): Promise { await cache.saveCache(cachePaths, primaryKey, { uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize) }); + core.info(`Cache saved with key: ${primaryKey}`); } catch (error) { if (error.name === cache.ValidationError.name) { throw error;