|
|
@ -18,6 +18,9 @@ inputs:
|
|
|
|
description: 'Fail the workflow if the cache is not found for the given key.'
|
|
|
|
description: 'Fail the workflow if the cache is not found for the given key.'
|
|
|
|
required: false
|
|
|
|
required: false
|
|
|
|
default: "false"
|
|
|
|
default: "false"
|
|
|
|
|
|
|
|
save-on-failure:
|
|
|
|
|
|
|
|
description: 'Save build cache despite of failure in the job'
|
|
|
|
|
|
|
|
default: "false"
|
|
|
|
outputs:
|
|
|
|
outputs:
|
|
|
|
cache-hit:
|
|
|
|
cache-hit:
|
|
|
|
description: 'A boolean value to indicate an exact match was found for the primary key'
|
|
|
|
description: 'A boolean value to indicate an exact match was found for the primary key'
|
|
|
@ -25,7 +28,7 @@ runs:
|
|
|
|
using: 'node16'
|
|
|
|
using: 'node16'
|
|
|
|
main: 'dist/restore/index.js'
|
|
|
|
main: 'dist/restore/index.js'
|
|
|
|
post: 'dist/save/index.js'
|
|
|
|
post: 'dist/save/index.js'
|
|
|
|
post-if: 'success()'
|
|
|
|
post-if: success() || inputs.save-on-failure == "true"
|
|
|
|
branding:
|
|
|
|
branding:
|
|
|
|
icon: 'archive'
|
|
|
|
icon: 'archive'
|
|
|
|
color: 'gray-dark'
|
|
|
|
color: 'gray-dark'
|
|
|
|