Configurable save cache: GHA_CACHE_SAVE=success|always|never

pull/964/head
Robert Haschke 3 years ago
parent 4fe9c4bd54
commit 2cc80e8d36

@ -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…
Cancel
Save