mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-23 17:23:59 +08:00
Configurable save cache: GHA_CACHE_SAVE=success|always|never
This commit is contained in:
parent
4fe9c4bd54
commit
2cc80e8d36
1 changed files with 3 additions and 1 deletions
|
@ -21,7 +21,9 @@ runs:
|
|||
using: 'node16'
|
||||
main: 'dist/restore/index.js'
|
||||
post: 'dist/save/index.js'
|
||||
post-if: 'success()'
|
||||
post-if: |
|
||||
((env.GHA_CACHE_SAVE == 'always') && (success() || failure())) ||
|
||||
((env.GHA_CACHE_SAVE != 'never') && success())
|
||||
branding:
|
||||
icon: 'archive'
|
||||
color: 'gray-dark'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue