-
Notifications
You must be signed in to change notification settings - Fork 633
Example for restore-only cache in documentation #696
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
Example for restore-only cache in documentation #696
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds documentation demonstrating how to achieve restore-only caching with setup-node using the actions/cache/restore action. The update addresses community requests for a restore-only flag by documenting an alternative approach using existing actions/cache functionality.
Key changes:
- Added a "Restore-Only Cache" section with a complete workflow example
- Demonstrates how to manually restore Go caches without automatic saving
- Includes cross-platform support for Linux, macOS, and Windows
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* cache-restore-only example * resolve conflicts * example update * format update * format update * update
Description:
This PR adds documentation and an example workflow demonstrating how to achieve restore-only caching with setup-node using the actions/cache.
The update is based on community feedback which proposed adding a restore-only flag to the action.
Instead of introducing new functionality, this documentation clarifies how users can already achieve this behavior using actions/cache.
Related issue:
#316 & #497
Check list: