8000 allow skipping saving the layers by btkostner · Pull Request #21 · satackey/action-docker-layer-caching · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

allow skipping saving the layers #21

New issue

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 4 commits into from
Aug 15, 2020
Merged

allow skipping saving the layers #21

merged 4 commits into from
Aug 15, 2020

Conversation

btkostner
Copy link
Contributor

This allows you skipping the whole post step of trying to save the layers. The use case here being I'm caching the build from a previous step and running tests. I don't need to save the layers again.

Use case repo: https://github.com/btkostner/neon/runs/974278660?check_suite_focus=true

Copy link
Owner
@satackey satackey left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

test_restoreing fails and test_saving shows Skipping save.
Since core.getInput always returns a string, '' != null seems to be true even if there is no input (an empty string isn't null).

I think it would be a good idea to set the default value to true in action.yml and parse it to boolean with JSON.parse.

btkostner and others added 2 commits August 14, 2020 11:07
Co-authored-by: satackey <me+github.com@satackey.com>
Co-authored-by: satackey <me+github.com@satackey.com>
@btkostner
Copy link
Contributor Author

@satackey ahh, whoops. Thank you for the suggestion!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@satackey satackey merged commit df1a729 into satackey:master Aug 15, 2020
@satackey
Copy link
Owner

@btkostner I've released v0.0.6 for this.

@btkostner
Copy link
Contributor Author

Awesome! Thank you!

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