3
0
Fork 0
mirror of https://github.com/Swatinem/rust-cache synced 2025-04-18 09:49:02 +00:00

Initial attempt at cache-on-failure support

This commit is contained in:
Tom Parker-Shemilt 2021-06-27 16:13:15 +01:00
parent 842ef286ff
commit b8653352b1

View file

@ -14,6 +14,9 @@ inputs:
target-dir:
description: "The target dir that should be cleaned and persisted, defaults to `./target`"
required: false
cache-on-failure:
description: "Cache even if the build fails. Defaults to false"
required: false
outputs:
cache-hit:
description: "A boolean value that indicates an exact match was found"
@ -21,7 +24,7 @@ runs:
using: "node12"
main: "dist/restore/index.js"
post: "dist/save/index.js"
post-if: "success()"
post-if: "success() || env.INPUT_CACHE_ON_FAILURE === 'true'"
branding:
icon: "archive"
color: "gray-dark"