Consuming 3.0 actions/cache by tiwarishub · Pull Request #834 · actions/cache
Conversation
We recently published actions/cache 3.0, which suppresses all the errors related caching except validation one. In this PR we are consuming that package to that error handling can be moved cache package.
| const cacheId = await cache.saveCache(cachePaths, primaryKey, { | ||
| uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize) | ||
| }); | ||
| if (cacheId == -1) { |
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we do -
if (cacheId != -1) {
core.info(`Cache saved with key: ${primaryKey}`);
}
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This was referenced
Oct 4, 2022This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters