mirror of
https://github.com/deployphp/action.git
synced 2025-06-28 20:24:14 +00:00
Add deployer-binary input
This commit is contained in:
parent
c9109f14cf
commit
732002f64c
3 changed files with 62 additions and 26 deletions
6
index.js
6
index.js
|
@ -42,7 +42,9 @@ async function ssh() {
|
|||
}
|
||||
|
||||
async function dep() {
|
||||
let dep
|
||||
let dep = core.getInput('deployer-binary')
|
||||
|
||||
if (dep === '')
|
||||
for (let c of ['vendor/bin/dep', 'deployer.phar']) {
|
||||
if (fs.existsSync(c)) {
|
||||
dep = c
|
||||
|
@ -51,7 +53,7 @@ async function dep() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!dep) {
|
||||
if (dep === '') {
|
||||
let version = core.getInput('deployer-version')
|
||||
if (version === '') {
|
||||
console.log(`Downloading "https://deployer.org/deployer.phar".`)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue