add cache-skip-save

This commit is contained in:
Tyler Jones 2022-12-14 09:53:13 -08:00 committed by GitHub
parent 377c6dae40
commit 2ef4eb6ac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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