mirror of
https://github.com/deployphp/action.git
synced 2025-04-01 19:06:35 +00:00
Fix cmd parsing
This commit is contained in:
parent
554eb0b122
commit
e71b9feeeb
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -100,7 +100,7 @@ async function dep() {
|
||||||
dep = 'deployer.phar'
|
dep = 'deployer.phar'
|
||||||
}
|
}
|
||||||
|
|
||||||
let cmd = core.getInput('dep')
|
let cmd = core.getInput('dep').split(' ')
|
||||||
let ansi = core.getBooleanInput('ansi') ? '--ansi' : '--no-ansi'
|
let ansi = core.getBooleanInput('ansi') ? '--ansi' : '--no-ansi'
|
||||||
let verbosity = core.getInput('verbosity')
|
let verbosity = core.getInput('verbosity')
|
||||||
let options = []
|
let options = []
|
||||||
|
@ -113,7 +113,7 @@ async function dep() {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await $`php ${dep} --no-interaction ${ansi} ${verbosity} ${cmd} ${options}`
|
await $`php ${dep} ${cmd} --no-interaction ${ansi} ${verbosity} ${options}`
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
core.setFailed(`Failed: dep ${cmd}`)
|
core.setFailed(`Failed: dep ${cmd}`)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue