From 2ef4eb6ac19bbd7fa3d468ed66a1fda4522ef16d Mon Sep 17 00:00:00 2001 From: Tyler Jones Date: Wed, 14 Dec 2022 09:53:13 -0800 Subject: [PATCH] add cache-skip-save --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index b22de1ef..864d5e40 100644 --- a/action.yml +++ b/action.yml @@ -25,6 +25,9 @@ inputs: description: 'Used to specify a package manager for caching in the default directory. Supported values: npm, yarn, pnpm.' cache-dependency-path: description: 'Used to specify the path to a dependency file: package-lock.json, yarn.lock, etc. Supports wildcards or a list of file names for caching multiple dependencies.' + cache-skip-save: + description: 'Used to skip saving of the cached dependencies.' + default: false # TODO: add input to control forcing to pull from cloud or dist. # escape valve for someone having issues or needing the absolute latest which isn't cached yet outputs: @@ -36,4 +39,4 @@ runs: using: 'node16' main: 'dist/setup/index.js' post: 'dist/cache-save/index.js' - post-if: success() + post-if: success() && inputs.cache-skip-save == true