Skip to content

docs: document cache-hit, cache-primary-key and cache-matched-key outputs - #1673

Open
TarcisioPhilips wants to merge 1 commit into
actions:mainfrom
TarcisioPhilips:docs/cache-outputs
Open

TarcisioPhilips wants to merge 1 commit into
actions:mainfrom
TarcisioPhilips:docs/cache-outputs

Conversation

@TarcisioPhilips

Copy link
Copy Markdown

Description:
action.yml declares three cache-related outputs that are not mentioned anywhere in the README or docs/:

This adds a short Cache outputs subsection to "Caching global packages data" in the README. The descriptions follow action.yml and src/cache-restore.ts: the outputs are set only when caching runs, cache-hit is Boolean(cacheKey), cache-primary-key is built from RUNNER_OS, arch, package manager and the dependency file hash, and with Yarn Berry the restore can fall back to a key with the same prefix, so cache-matched-key can differ from cache-primary-key. A small example shows how to read them via a step id.

Docs-only. No changes to src/, dist/ or action.yml.

Related issue:
None. #1543 touches action.yml descriptions (including cache-hit) but does not add README docs for these outputs, so the two don't overlap.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Found with doc-lag (https://github.com/TarcisioPhilips/doc-lag), a small tool that flags new action inputs/outputs missing from docs.

@TarcisioPhilips
TarcisioPhilips requested a review from a team as a code owner November 23, 2026 18:24

This branch has not been deployed

No deployments
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.

1 participant