feat: Introduced restore-only flag

This commit is contained in:
Guillermo Mazzola 2026-04-01 22:12:08 +02:00
parent 668228422a
commit e58227cd44
No known key found for this signature in database
GPG key ID: 6A17887FBC885E08
10 changed files with 63 additions and 5 deletions

View file

@ -90,6 +90,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`
* `restore-only` - If true, only restores cache and skips save cache behavior. Default: `false`. Set it to `${{ github.event.repository != null && github.ref_name != github.event.repository.default_branch }}` to only save the cache when running on the default branch.
#### Environment Variables