Fix argv split

This commit is contained in:
Anton Medvedev 2020-12-04 00:05:51 +01:00
parent 97c09aab21
commit cc5f2d19c6
3 changed files with 8 additions and 1 deletions

@ -1,6 +1,7 @@
const core = require('@actions/core')
const fs = require('fs')
const execa = require('execa')
const split = require('argv-split')
void function main() {
try {
@ -45,5 +46,5 @@ function dep() {
dep = 'deployer.phar'
}
execa.commandSync(`${dep} ${core.getInput('dep')}`)
execa.sync(dep, split(core.getInput('dep')))
}

5
package-lock.json generated

@ -7,6 +7,11 @@
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz",
"integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA=="
},
"argv-split": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/argv-split/-/argv-split-2.0.1.tgz",
"integrity": "sha1-viZBF3kNvVzNY+w/RJoYBIFKxMU="
},
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",

@ -2,6 +2,7 @@
"private": true,
"dependencies": {
"@actions/core": "^1.2.6",
"argv-split": "^2.0.1",
"execa": "^4.1.0"
}
}