From fef15139c92bbdb8ec27b39047d151887f0efce0 Mon Sep 17 00:00:00 2001 From: Konrad Pabjan Date: Wed, 29 Jul 2020 18:35:44 +0200 Subject: [PATCH] Change supppress to ignore --- README.md | 2 +- action.yml | 2 +- dist/index.js | 4 ++-- src/constants.ts | 2 +- src/upload-artifact.ts | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1123678..d576747 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ If a path (or paths), result in no files being found for the artifact, the actio with: name: my-artifact path: path/to/artifact/ - if-no-files-found: error # 'warn' or 'suppress' are also available, defaults to `warn` + if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn` ``` ### Conditional Artifact Upload diff --git a/action.yml b/action.yml index 58354c5..dbdbc92 100644 --- a/action.yml +++ b/action.yml @@ -15,7 +15,7 @@ inputs: Available Options: warn: Output a warning but do not fail the action error: Fail the action with an error message - suppress: Do not output any warnings or errors, the action does not fail + ignore: Do not output any warnings or errors, the action does not fail default: 'warn' runs: using: 'node12' diff --git a/dist/index.js b/dist/index.js index ee36e68..e9321ce 100644 --- a/dist/index.js +++ b/dist/index.js @@ -4006,7 +4006,7 @@ function run() { core.setFailed(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`); break; } - case constants_1.NoFileOptions.suppress: { + case constants_1.NoFileOptions.ignore: { core.info(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`); break; } @@ -7315,7 +7315,7 @@ var NoFileOptions; /** * Do not output any warnings or errors, the action does not fail */ - NoFileOptions["suppress"] = "suppress"; + NoFileOptions["ignore"] = "ignore"; })(NoFileOptions = exports.NoFileOptions || (exports.NoFileOptions = {})); diff --git a/src/constants.ts b/src/constants.ts index da881f3..f01f984 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -18,5 +18,5 @@ export enum NoFileOptions { /** * Do not output any warnings or errors, the action does not fail */ - suppress = 'suppress' + ignore = 'ignore' } diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index a5b0c6f..e37c6b4 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -23,7 +23,7 @@ async function run(): Promise { ) break } - case NoFileOptions.suppress: { + case NoFileOptions.ignore: { core.info( `No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.` )