Skip to content

Commit

Permalink
Make save/restore logs akin (actions#509)
Browse files Browse the repository at this point in the history
- Print primary key when saving cache
  • Loading branch information
rosik committed Feb 3, 2021
1 parent aeaf731 commit 26968a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/save/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/save.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ async function run(): Promise<void> {
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;
Expand Down

0 comments on commit 26968a0

Please sign in to comment.