3
0
Fork 0
mirror of https://code.forgejo.org/actions/cache.git synced 2026-08-10 05:21:12 +00:00

feat: Introduced post flag on actions/cache/save

This commit is contained in:
Guillermo Mazzola 2026-07-30 15:35:12 +02:00
parent 3edfce9056
commit 47ce5e4dfc
No known key found for this signature in database
GPG key ID: 6A17887FBC885E08
14 changed files with 95201 additions and 17 deletions

View file

@ -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
* `post` - If set to `true` the action will run as a post-step, after the job has finished.
### Outputs

View file

@ -15,9 +15,15 @@ inputs:
description: 'An optional boolean when enabled, allows windows runners to save caches that can be restored on other platforms'
default: 'false'
required: false
post:
description: 'An optional boolean when enabled, allows the action to run after the job has completed'
default: 'false'
required: false
runs:
using: 'node24'
main: '../dist/save-only/index.js'
post: '../dist/save-only/post/index.js'
post-if: "success()"
branding:
icon: 'archive'
color: 'gray-dark'