mirror of
https://github.com/deployphp/action.git
synced 2024-11-26 21:59:02 +00:00
Add more verbose messages
This commit is contained in:
parent
6c596fa80d
commit
c9109f14cf
3
index.js
3
index.js
@ -46,6 +46,7 @@ async function dep() {
|
|||||||
for (let c of ['vendor/bin/dep', 'deployer.phar']) {
|
for (let c of ['vendor/bin/dep', 'deployer.phar']) {
|
||||||
if (fs.existsSync(c)) {
|
if (fs.existsSync(c)) {
|
||||||
dep = c
|
dep = c
|
||||||
|
console.log(`Using "${c}".`)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -53,11 +54,13 @@ async function dep() {
|
|||||||
if (!dep) {
|
if (!dep) {
|
||||||
let version = core.getInput('deployer-version')
|
let version = core.getInput('deployer-version')
|
||||||
if (version === '') {
|
if (version === '') {
|
||||||
|
console.log(`Downloading "https://deployer.org/deployer.phar".`)
|
||||||
execa.commandSync('curl -LO https://deployer.org/deployer.phar')
|
execa.commandSync('curl -LO https://deployer.org/deployer.phar')
|
||||||
} else {
|
} else {
|
||||||
if (!/^v/.test(version)) {
|
if (!/^v/.test(version)) {
|
||||||
version = 'v' + 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(`curl -LO https://deployer.org/releases/${version}/deployer.phar`)
|
||||||
}
|
}
|
||||||
execa.commandSync('sudo chmod +x deployer.phar')
|
execa.commandSync('sudo chmod +x deployer.phar')
|
||||||
|
Loading…
Reference in New Issue
Block a user