From d2857e6f774ba119e774bdba4082712d32fbd5d3 Mon Sep 17 00:00:00 2001 From: Oliver Borchert Date: Sat, 4 May 2024 14:50:40 +0200 Subject: [PATCH] Do not extract cache on job failure Signed-off-by: Oliver Borchert --- action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/action.yml b/action.yml index 5f5f409..e789441 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,11 @@ inputs: skip-extraction: default: "false" description: "Skip the extraction of the cache from the docker container" + save-always: + default: "false" + description: "Run the post step to save the cache even if another step before fails" runs: using: 'node20' main: 'dist/index.js' post: 'dist/index.js' + post-if: 'success() || github.event.inputs.save-always'