Change supppress to ignore

This commit is contained in:
Konrad Pabjan 2020-07-29 18:35:44 +02:00
parent 0fd7594662
commit fef15139c9
5 changed files with 6 additions and 6 deletions

View File

@ -97,7 +97,7 @@ If a path (or paths), result in no files being found for the artifact, the actio
with: with:
name: my-artifact name: my-artifact
path: path/to/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 ### Conditional Artifact Upload

View File

@ -15,7 +15,7 @@ inputs:
Available Options: Available Options:
warn: Output a warning but do not fail the action warn: Output a warning but do not fail the action
error: Fail the action with an error message 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' default: 'warn'
runs: runs:
using: 'node12' using: 'node12'

4
dist/index.js vendored
View File

@ -4006,7 +4006,7 @@ function run() {
core.setFailed(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`); core.setFailed(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`);
break; 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.`); core.info(`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`);
break; break;
} }
@ -7315,7 +7315,7 @@ var NoFileOptions;
/** /**
* Do not output any warnings or errors, the action does not fail * Do not output any warnings or errors, the action does not fail
*/ */
NoFileOptions["suppress"] = "suppress"; NoFileOptions["ignore"] = "ignore";
})(NoFileOptions = exports.NoFileOptions || (exports.NoFileOptions = {})); })(NoFileOptions = exports.NoFileOptions || (exports.NoFileOptions = {}));

View File

@ -18,5 +18,5 @@ export enum NoFileOptions {
/** /**
* Do not output any warnings or errors, the action does not fail * Do not output any warnings or errors, the action does not fail
*/ */
suppress = 'suppress' ignore = 'ignore'
} }

View File

@ -23,7 +23,7 @@ async function run(): Promise<void> {
) )
break break
} }
case NoFileOptions.suppress: { case NoFileOptions.ignore: {
core.info( core.info(
`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.` `No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`
) )