1
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2025-06-04 21:40:22 +02:00

Add new setting save-on-success.

* Proposal to implement https://github.com/actions/cache/issues/1570
This commit is contained in:
helly25 2025-03-11 21:19:20 +01:00
parent 5a3ec84eff
commit 40b3745dc1
No known key found for this signature in database
GPG key ID: 95B24A6EAE247816
2 changed files with 8 additions and 2 deletions

View file

@ -76,6 +76,7 @@ If you are using a `self-hosted` Windows runner, `GNU tar` and `zstd` are requir
* `enableCrossOsArchive` - An optional boolean when enabled, allows Windows runners to save or restore caches that can be restored or saved respectively on other platforms. Default: `false`
* `fail-on-cache-miss` - Fail the workflow if cache entry is not found. Default: `false`
* `lookup-only` - If true, only checks if cache entry exists and skips download. Does not change save cache behavior. Default: `false`
* `save-on-success` - If true, then the cache is written in the post action on success, or (if false) the cache will only be restored if available.
#### Environment Variables