Skip to content

Commit

Permalink
Add more verbose messages
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Oct 15, 2021
1 parent 6c596fa commit c9109f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,21 @@ async function dep() {
for (let c of ['vendor/bin/dep', 'deployer.phar']) {
if (fs.existsSync(c)) {
dep = c
console.log(`Using "${c}".`)
break
}
}

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')
Expand Down

0 comments on commit c9109f1

Please sign in to comment.