3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-08-08 06:11:24 +00:00

feat: add save-if option, closes #66 (#91)

This commit is contained in:
Lucas Fernandes Nogueira 2022-11-06 15:15:00 -03:00 committed by GitHub
parent b894d59a8d
commit ecee04e7b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 1 deletions

View file

@ -53,6 +53,12 @@ sensible defaults.
# Determines if the cache should be saved even when the workflow has failed.
# default: "false"
cache-on-failure: ""
# Determiners 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.
# default: "true"
save-if: ""
```
Further examples are available in the [.github/workflows](./.github/workflows/) directory.