Repository navigation
docs: document cache-hit, cache-primary-key and cache-matched-key outputs - #1673
Open
TarcisioPhilips wants to merge 1 commit into
Open
TarcisioPhilips wants to merge 1 commit into
TarcisioPhilips wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
action.ymldeclares three cache-related outputs that are not mentioned anywhere in the README ordocs/:cache-hit(added in Add 'cache-hit' as output #327)cache-primary-keyandcache-matched-key(added in Add cache-primary-key and cache-matched-key as outputs #1577)This adds a short Cache outputs subsection to "Caching global packages data" in the README. The descriptions follow
action.ymlandsrc/cache-restore.ts: the outputs are set only when caching runs,cache-hitisBoolean(cacheKey),cache-primary-keyis built fromRUNNER_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, socache-matched-keycan differ fromcache-primary-key. A small example shows how to read them via a stepid.Docs-only. No changes to
src/,dist/oraction.yml.Related issue:
None. #1543 touches
action.ymldescriptions (includingcache-hit) but does not add README docs for these outputs, so the two don't overlap.Check list:
Found with doc-lag (https://github.com/TarcisioPhilips/doc-lag), a small tool that flags new action inputs/outputs missing from docs.