From 0bf91d3ad51b25ed6a44977ce2411282c451b955 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sat, 19 Mar 2022 18:21:46 +0100 Subject: [PATCH] Add vendor/bin/deployer.phar --- README.md | 1 + index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d7cbf0b..fab43df 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ # Deployer version to download from deployer.org. # First, the action will check for Deployer binary at those paths: + # - `vendor/bin/deployer.phar` # - `vendor/bin/dep` # - `deployer.phar` # If the binary not found, phar version will be downloaded from diff --git a/index.js b/index.js index ab5f7f3..843b7d2 100644 --- a/index.js +++ b/index.js @@ -45,7 +45,7 @@ async function dep() { let dep = core.getInput('deployer-binary') 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)) { dep = c console.log(`Using "${c}".`)