Adds an option to do lookup-only of the cache (#217)

This commit is contained in:
Daniel LeCheminant
2024-11-08 11:36:34 -08:00
committed by GitHub
parent 68b3cb7503
commit c00f3025ca
4 changed files with 29 additions and 7 deletions

View File

@ -60,7 +60,7 @@ sensible defaults.
# default: "false"
cache-all-crates: ""
# Determiners whether the cache should be saved.
# Determines whether the cache should be saved.
# If `false`, the cache is only restored.
# Useful for jobs where the matrix is additive e.g. additional Cargo features,
# or when only runs from `master` should be saved to the cache.
@ -69,6 +69,12 @@ sensible defaults.
# To only cache runs from `master`:
save-if: ${{ github.ref == 'refs/heads/master' }}
# Determines whether the cache should be restored.
# If `true` the cache key will be checked and the `cache-hit` output will be set
# but the cache itself won't be restored
# default: "false"
lookup-only: ""
# Specifies what to use as the backend providing cache
# Can be set to either "github" or "buildjet"
# default: "github"