From e71b9feeeb6a197862dcf53a331ff58f28dc90d4 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Tue, 10 Jan 2023 18:10:04 +0100 Subject: [PATCH] Fix cmd parsing --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b61ff8b..c7c7456 100644 --- a/index.js +++ b/index.js @@ -100,7 +100,7 @@ async function dep() { dep = 'deployer.phar' } - let cmd = core.getInput('dep') + let cmd = core.getInput('dep').split(' ') let ansi = core.getBooleanInput('ansi') ? '--ansi' : '--no-ansi' let verbosity = core.getInput('verbosity') let options = [] @@ -113,7 +113,7 @@ async function dep() { } try { - await $`php ${dep} --no-interaction ${ansi} ${verbosity} ${cmd} ${options}` + await $`php ${dep} ${cmd} --no-interaction ${ansi} ${verbosity} ${options}` } catch (err) { core.setFailed(`Failed: dep ${cmd}`) }