mirror of
https://github.com/deployphp/action.git
synced 2024-11-23 04:19:02 +00:00
Add catch
This commit is contained in:
parent
13c2ed42a5
commit
d2f712fdfb
4
index.js
4
index.js
@ -3,8 +3,12 @@ const fs = require('fs')
|
||||
const execa = require('execa')
|
||||
|
||||
void function main() {
|
||||
try {
|
||||
ssh()
|
||||
dep()
|
||||
} catch (err) {
|
||||
core.setFailed(err.message)
|
||||
}
|
||||
}()
|
||||
|
||||
function ssh() {
|
||||
|
Loading…
Reference in New Issue
Block a user