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
parent 5f948bc1f0
commit 9073645079
5 changed files with 92 additions and 14 deletions

View file

@ -4,10 +4,19 @@ author: 'GitHub'
inputs:
name:
description: 'Artifact name'
required: false
default: 'artifact'
path:
description: 'A file, directory or wildcard pattern that describes what to upload'
required: true
if-no-files-found:
description: >
The desired behavior if no files are found using the provided path.
Available Options:
warn: Output a warning but do not fail the action
error: Fail the action with an error message
suppress: Do not output any warnings or errors, the action does not fail
default: 'warn'
runs:
using: 'node12'
main: 'dist/index.js'