mirror of
https://github.com/Swatinem/rust-cache.git
synced 2025-08-14 20:55:13 +00:00
Initial attempt at cache-on-failure support
This commit is contained in:
parent
842ef286ff
commit
b8653352b1
@ -14,6 +14,9 @@ inputs:
|
|||||||
target-dir:
|
target-dir:
|
||||||
description: "The target dir that should be cleaned and persisted, defaults to `./target`"
|
description: "The target dir that should be cleaned and persisted, defaults to `./target`"
|
||||||
required: false
|
required: false
|
||||||
|
cache-on-failure:
|
||||||
|
description: "Cache even if the build fails. Defaults to false"
|
||||||
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
cache-hit:
|
cache-hit:
|
||||||
description: "A boolean value that indicates an exact match was found"
|
description: "A boolean value that indicates an exact match was found"
|
||||||
@ -21,7 +24,7 @@ runs:
|
|||||||
using: "node12"
|
using: "node12"
|
||||||
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() || env.INPUT_CACHE_ON_FAILURE === 'true'"
|
||||||
branding:
|
branding:
|
||||||
icon: "archive"
|
icon: "archive"
|
||||||
color: "gray-dark"
|
color: "gray-dark"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user