Add if-no-files-found option to merge action

This commit is contained in:
Charlie Croom 2024-02-13 12:16:53 -05:00
parent 4c0ff1c489
commit 03a6dff9d4
No known key found for this signature in database
14 changed files with 202 additions and 44 deletions

View file

@ -36,6 +36,14 @@ For most cases, this may not be the most efficient solution. See [the migration
# Optional. Default is '*'
pattern:
# The desired behavior if no artifacts are found using the provided pattern.
# Available Options:
# warn: Output a warning but do not fail the action
# error: Fail the action with an error message
# ignore: Do not output any warnings or errors, the action does not fail
# Optional. Default is 'error'
if-no-files-found:
# If true, the artifacts will be merged into separate directories.
# If false, the artifacts will be merged into the root of the destination.
# Optional. Default is 'false'

View file

@ -9,6 +9,15 @@ inputs:
pattern:
description: 'A glob pattern matching the artifact names that should be merged.'
default: '*'
if-no-files-found:
description: >
The desired behavior if no artifacts are found using the provided pattern.
Available Options:
warn: Output a warning but do not fail the action
error: Fail the action with an error message
ignore: Do not output any warnings or errors, the action does not fail
default: 'error'
separate-directories:
description: 'When multiple artifacts are matched, this changes the behavior of how they are merged in the archive.
If true, the matched artifacts will be extracted into individual named directories within the specified path.