Skip to content

Conversation

@aparnajyothi-y
Copy link
Contributor

@aparnajyothi-y aparnajyothi-y commented Dec 12, 2025

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:

  • [ X] Mark if documentation changes are required.

@aparnajyothi-y aparnajyothi-y requested a review from a team as a code owner December 12, 2025 14:41
Copilot AI review requested due to automatic review settings December 12, 2025 14:41
Copy link

Copilot AI left a 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.

@HarithaVattikuti HarithaVattikuti merged commit 4aaadf4 into actions:main Dec 18, 2025
3 checks passed
priyagupta108 added a commit to priyagupta108/setup-go that referenced this pull request Dec 31, 2025
* cache-restore-only example

* resolve conflicts

* example update

* format update

* format update

* update
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.

4 participants