mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-05 05:47:48 +02:00
Save cache on failure action update
This commit is contained in:
parent
cd1e32a41b
commit
cad5946950
1 changed files with 4 additions and 1 deletions
|
@ -18,6 +18,9 @@ inputs:
|
|||
description: 'Fail the workflow if the cache is not found for the given key.'
|
||||
required: false
|
||||
default: "false"
|
||||
save-on-failure:
|
||||
description: 'Save build cache despite of failure in the job'
|
||||
default: "false"
|
||||
outputs:
|
||||
cache-hit:
|
||||
description: 'A boolean value to indicate an exact match was found for the primary key'
|
||||
|
@ -25,7 +28,7 @@ runs:
|
|||
using: 'node16'
|
||||
main: 'dist/restore/index.js'
|
||||
post: 'dist/save/index.js'
|
||||
post-if: 'success()'
|
||||
post-if: success() || inputs.save-on-failure == "true"
|
||||
branding:
|
||||
icon: 'archive'
|
||||
color: 'gray-dark'
|
||||
|
|
Loading…
Add table
Reference in a new issue