mirror of
https://code.forgejo.org/actions/cache.git
synced 2026-03-22 15:35:56 +03:00
add compression-level inputs
This commit is contained in:
parent
9255dc7a25
commit
6018dbe2dc
15 changed files with 916 additions and 583 deletions
|
|
@ -9,6 +9,7 @@ The save action saves a cache. It works similarly to the `cache` action except t
|
|||
* `key` - An explicit key for a cache entry. See [creating a cache key](../README.md#creating-a-cache-key).
|
||||
* `path` - A list of files, directories, and wildcard patterns to cache. See [`@actions/glob`](https://github.com/actions/toolkit/tree/main/packages/glob) for supported patterns.
|
||||
* `upload-chunk-size` - The chunk size used to split up large files during upload, in bytes
|
||||
* `compression-level` - Compression level to use when creating cache archives. Use `0` for no compression and `9` for maximum compression. Defaults to the compression tool's standard level when unset.
|
||||
|
||||
### Outputs
|
||||
|
||||
|
|
@ -16,7 +17,6 @@ This action has no outputs.
|
|||
|
||||
## Use cases
|
||||
|
||||
|
||||
### Only save cache
|
||||
|
||||
If you are using separate jobs for generating common artifacts and sharing them across jobs, this action will take care of your cache saving needs.
|
||||
|
|
@ -54,6 +54,7 @@ with:
|
|||
```
|
||||
|
||||
#### Case 1 - Where a user would want to reuse the key as it is
|
||||
|
||||
```yaml
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue