From 5557b9eaa0453249246f40f169a1a3691f522c3f Mon Sep 17 00:00:00 2001 From: Dariusz Porowski <3431813+DariuszPorowski@users.noreply.github.com> Date: Mon, 13 Nov 2023 14:54:17 -0800 Subject: [PATCH] fix: user flags parser --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 5c55f80..7fdbb8e 100644 --- a/action.yml +++ b/action.yml @@ -357,8 +357,10 @@ runs: // set user tool flags if(INPUT_FLAGS !== '') { - const userFlags = INPUT_FLAGS.split(' ').map(s => s.trim()) - userFlags.forEach(flag => { toolFlags.push(flag) }) + const userFlags = INPUT_FLAGS.match(/(?:[^\s"]+|"[^"]*")+/g) + userFlags.forEach(flag => { + toolFlags.push(flag.trim()) + }) } // set files