Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26968a0

Browse files
authored
Make save/restore logs akin (#509)
- Print primary key when saving cache
1 parent aeaf731 commit 26968a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/save/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45471,6 +45471,7 @@ function run() {
4547145471
yield cache.saveCache(cachePaths, primaryKey, {
4547245472
uploadChunkSize: utils.getInputAsInt(constants_1.Inputs.UploadChunkSize)
4547345473
});
45474+
core.info(`Cache saved with key: ${primaryKey}`);
4547445475
}
4547545476
catch (error) {
4547645477
if (error.name === cache.ValidationError.name) {

src/save.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ async function run(): Promise<void> {
4444
await cache.saveCache(cachePaths, primaryKey, {
4545
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
4646
});
47+
core.info(`Cache saved with key: ${primaryKey}`);
4748
} catch (error) {
4849
if (error.name === cache.ValidationError.name) {
4950
throw error;

0 commit comments

Comments
 (0)