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