8000 Consuming 3.0 actions/cache by tiwarishub · Pull Request #834 · actions/cache · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Consuming 3.0 actions/cache #834

New issue 8000

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 7, 2022
Merged

Consuming 3.0 actions/cache #834

merged 9 commits into from
Jul 7, 2022

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
0