mirror of
https://github.com/actions/upload-artifact.git
synced 2025-06-24 08:36:12 +02:00
Improve error messages
This commit is contained in:
parent
91b12310e9
commit
b62552503d
3 changed files with 8 additions and 8 deletions
|
@ -8,15 +8,15 @@ export enum NoFileOptions {
|
|||
/**
|
||||
* Default. Output a warning but do not fail the action
|
||||
*/
|
||||
warn,
|
||||
warn = 'warn',
|
||||
|
||||
/**
|
||||
* Fail the action with an error message
|
||||
*/
|
||||
error,
|
||||
error = 'error',
|
||||
|
||||
/**
|
||||
* Do not output any warnings or errors, the action does not fail
|
||||
*/
|
||||
suppress
|
||||
suppress = 'suppress'
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ export function getInputs(): UploadInputs {
|
|||
core.setFailed(
|
||||
`Unrecognized if-no-files-found input. Provided ${ifNoFilesFound}. Available options include ${Object.keys(
|
||||
NoFileOptions
|
||||
).map(k => NoFileOptions[k as string])}`
|
||||
)}`
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue