Add new option to specify behavior if no files found

This commit is contained in:
Konrad Pabjan 2020-07-27 18:29:31 +02:00
commit 9073645079
5 changed files with 92 additions and 14 deletions

View file

@ -1,8 +1,22 @@
export enum Inputs {
Name = 'name',
Path = 'path'
Path = 'path',
IfNoFilesFound = 'if-no-files-found'
}
export function getDefaultArtifactName(): string {
return 'artifact'
export enum NoFileOptions {
/**
* Default. Output a warning but do not fail the action
*/
warn,
/**
* Fail the action with an error message
*/
error,
/**
* Do not output any warnings or errors, the action does not fail
*/
suppress
}