From c9109f14cfed62baa499bbfdbd8f05620b1438c3 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Fri, 15 Oct 2021 23:34:50 +0200 Subject: [PATCH] Add more verbose messages --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index e96996d..5dc0415 100644 --- a/index.js +++ b/index.js @@ -46,6 +46,7 @@ async function dep() { for (let c of ['vendor/bin/dep', 'deployer.phar']) { if (fs.existsSync(c)) { dep = c + console.log(`Using "${c}".`) break } } @@ -53,11 +54,13 @@ async function dep() { if (!dep) { let version = core.getInput('deployer-version') if (version === '') { + console.log(`Downloading "https://deployer.org/deployer.phar".`) execa.commandSync('curl -LO https://deployer.org/deployer.phar') } else { if (!/^v/.test(version)) { version = 'v' + version } + console.log(`Downloading "https://deployer.org/releases/${version}/deployer.phar".`) execa.commandSync(`curl -LO https://deployer.org/releases/${version}/deployer.phar`) } execa.commandSync('sudo chmod +x deployer.phar')