mirror of
https://github.com/deployphp/action.git
synced 2024-11-23 12:29:03 +00:00
Fix argv split
This commit is contained in:
parent
97c09aab21
commit
cc5f2d19c6
3
index.js
3
index.js
@ -1,6 +1,7 @@
|
|||||||
const core = require('@actions/core')
|
const core = require('@actions/core')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const execa = require('execa')
|
const execa = require('execa')
|
||||||
|
const split = require('argv-split')
|
||||||
|
|
||||||
void function main() {
|
void function main() {
|
||||||
try {
|
try {
|
||||||
@ -45,5 +46,5 @@ function dep() {
|
|||||||
dep = 'deployer.phar'
|
dep = 'deployer.phar'
|
||||||
}
|
}
|
||||||
|
|
||||||
execa.commandSync(`${dep} ${core.getInput('dep')}`)
|
execa.sync(dep, split(core.getInput('dep')))
|
||||||
}
|
}
|
||||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -7,6 +7,11 @@
|
|||||||
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz",
|
"resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz",
|
||||||
"integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA=="
|
"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": {
|
"cross-spawn": {
|
||||||
"version": "7.0.3",
|
"version": "7.0.3",
|
||||||
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
|
"argv-split": "^2.0.1",
|
||||||
"execa": "^4.1.0"
|
"execa": "^4.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user