Provide shell and escape options when formatting matching files

This commit is contained in:
Michal Dorner 2020-12-13 21:07:47 +01:00
parent ada1eee648
commit e4d886f503
No known key found for this signature in database
GPG key ID: 9EEE04B48DA36786
7 changed files with 124 additions and 47 deletions

View file

@ -22,8 +22,11 @@ inputs:
description: |
Enables listing of files matching the filter:
'none' - Disables listing of matching files (default).
'json' - Matching files paths are serialized as JSON array.
'shell' - Matching files paths are escaped and space-delimited. Output is usable as command line argument list in linux shell.
'json' - Serialized as JSON array.
'shell' - Space delimited list usable as command line argument list in linux shell.
If needed it uses single or double quotes to wrap filename with unsafe characters.
'escape'- Space delimited list usable as command line argument list in linux shell.
Backslash escapes every potentially unsafe character.
required: true
default: none
initial-fetch-depth: