Add new option to specify behavior if no files found (#104)

* Add new option to specify behavior if no files found
This commit is contained in:
Konrad Pabjan 2020-07-31 17:27:37 +02:00 committed by GitHub
parent 5f948bc1f0
commit 5ba29a7d5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 188 additions and 25 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 = 'warn',
/**
* Fail the action with an error message
*/
error = 'error',
/**
* Do not output any warnings or errors, the action does not fail
*/
ignore = 'ignore'
}