mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-20 10:11:21 +00:00
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:
|
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
|
||||||
|
@ -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
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.`);
|
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 = {}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -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'
|
||||||
}
|
}
|
||||||
|
@ -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.`
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user