Skip to content

Conversation

tiwarishub
Copy link
Contributor

@tiwarishub tiwarishub commented Jun 24, 2022

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.

@tiwarishub tiwarishub marked this pull request as ready for review June 27, 2022 04:14
@tiwarishub tiwarishub requested a review from a team as a code owner June 27, 2022 04:14
@github-actions github-actions bot requested a review from vsvipul June 27, 2022 04:14
src/save.ts Outdated
const cacheId = await cache.saveCache(cachePaths, primaryKey, {
uploadChunkSize: utils.getInputAsInt(Inputs.UploadChunkSize)
});
if (cacheId == -1) {
Copy link
Contributor

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}`);
}

Copy link
Contributor

@vsvipul vsvipul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants