mirror of
https://github.com/actions/upload-artifact.git
synced 2025-07-18 20:48:25 +02:00
add defaulting to warn when if-no-files-found parameter is not given
This commit is contained in:
parent
3cea537223
commit
32f2b1ee45
3 changed files with 12 additions and 7070 deletions
|
@ -10,7 +10,10 @@ export function getInputs(): UploadInputs {
|
|||
const path = core.getInput(Inputs.Path, {required: true})
|
||||
|
||||
const ifNoFilesFound = core.getInput(Inputs.IfNoFilesFound)
|
||||
const noFileBehavior: NoFileOptions = NoFileOptions[ifNoFilesFound]
|
||||
const noFileBehavior: NoFileOptions =
|
||||
!ifNoFilesFound || ifNoFilesFound === ''
|
||||
? NoFileOptions.warn
|
||||
: NoFileOptions[ifNoFilesFound]
|
||||
|
||||
if (!noFileBehavior) {
|
||||
core.setFailed(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue