mirror of
https://github.com/docker/bake-action.git
synced 2025-12-06 07:48:26 +08:00
Allow passing multi-line files
Signed-off-by: Yuanhao Ji <jiyuanhao@apache.org>
This commit is contained in:
@@ -29,7 +29,7 @@ runs:
|
||||
with:
|
||||
script: |
|
||||
let def;
|
||||
const files = `${{ inputs.files }}` ? `${{ inputs.files }}`.split(',') : [];
|
||||
const files = `${{ inputs.files }}` ? `${{ inputs.files }}`.split(/[\r?\n,]+/).filter(Boolean) : [];
|
||||
const target = `${{ inputs.target }}`;
|
||||
|
||||
await core.group(`Validating definition`, async () => {
|
||||
|
||||
Reference in New Issue
Block a user