Change supppress to ignore
This commit is contained in:
parent
0fd7594662
commit
fef15139c9
@ -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
|
||||
|
@ -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'
|
||||
|
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -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 = {}));
|
||||
|
||||
|
||||
|
@ -18,5 +18,5 @@ export enum NoFileOptions {
|
||||
/**
|
||||
* Do not output any warnings or errors, the action does not fail
|
||||
*/
|
||||
suppress = 'suppress'
|
||||
ignore = 'ignore'
|
||||
}
|
||||
|
@ -23,7 +23,7 @@ async function run(): Promise<void> {
|
||||
)
|
||||
break
|
||||
}
|
||||
case NoFileOptions.suppress: {
|
||||
case NoFileOptions.ignore: {
|
||||
core.info(
|
||||
`No files were found with the provided path: ${inputs.searchPath}. No artifacts will be uploaded.`
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user