Repository navigation
Add example for restore-only cache in documentation - #1419
v-HarithaVattikuti merged 6 commits into
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds documentation demonstrating how to achieve restore-only caching behavior with setup-node by using the actions/cache action directly. This addresses community feedback requesting a restore-only flag without introducing new functionality, instead showing users how to accomplish this with existing tools.
Key Changes:
- Added a "Restore-Only Cache" section with a complete workflow example
- Included explanatory note about the benefits of restore-only caching
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
commented
Nov 12, 2025
|
Not sure why this was merged as this example will pretty much always fail. The key Note that runner architecture and package manager must be specified manually as the latter is not provided as action context, and the former, though provided as Furthermore, the provided path will also fail as caches (at least on Linux runners) are usually stored under Finally, the base action from |
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 from #663 (“Add option to restore cache only”), 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:
#663
Check list: