Mark job as failed on error (#14)

* fix: set failed on subprocess error

* chore: update dependencies
This commit is contained in:
Andrei Ioniță 2021-06-20 08:35:43 +01:00 committed by GitHub
commit 9eab20634f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 281 additions and 1118 deletions

View file

@ -55,5 +55,11 @@ function dep() {
dep = 'deployer.phar'
}
execa(dep, split(core.getInput('dep'))).stdout.pipe(process.stdout);
const subprocess = execa(dep, split(core.getInput('dep')))
subprocess.stdout.pipe(process.stdout);
subprocess.catch(err => {
core.setFailed(err.shortMessage)
})
}