mirror of
https://github.com/deployphp/action.git
synced 2024-11-23 04:19:02 +00:00
Add vendor/bin/deployer.phar
This commit is contained in:
parent
b0ec39ea7a
commit
0bf91d3ad5
@ -40,6 +40,7 @@
|
|||||||
|
|
||||||
# Deployer version to download from deployer.org.
|
# Deployer version to download from deployer.org.
|
||||||
# First, the action will check for Deployer binary at those paths:
|
# First, the action will check for Deployer binary at those paths:
|
||||||
|
# - `vendor/bin/deployer.phar`
|
||||||
# - `vendor/bin/dep`
|
# - `vendor/bin/dep`
|
||||||
# - `deployer.phar`
|
# - `deployer.phar`
|
||||||
# If the binary not found, phar version will be downloaded from
|
# If the binary not found, phar version will be downloaded from
|
||||||
|
2
index.js
2
index.js
@ -45,7 +45,7 @@ async function dep() {
|
|||||||
let dep = core.getInput('deployer-binary')
|
let dep = core.getInput('deployer-binary')
|
||||||
|
|
||||||
if (dep === '')
|
if (dep === '')
|
||||||
for (let c of ['vendor/bin/dep', 'deployer.phar']) {
|
for (let c of ['vendor/bin/deployer.phar', 'vendor/bin/dep', 'deployer.phar']) {
|
||||||
if (fs.existsSync(c)) {
|
if (fs.existsSync(c)) {
|
||||||
dep = c
|
dep = c
|
||||||
console.log(`Using "${c}".`)
|
console.log(`Using "${c}".`)
|
||||||
|
Loading…
Reference in New Issue
Block a user