Configurable save cache: GHA_CACHE_SAVE=success|always|never

This commit is contained in:
Robert Haschke 2022-10-21 12:20:01 +02:00
parent 4fe9c4bd54
commit 2cc80e8d36

View file

@ -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'