mirror of
https://github.com/deployphp/action.git
synced 2025-04-01 19:06:35 +00:00
Add catch
This commit is contained in:
parent
13c2ed42a5
commit
d2f712fdfb
1 changed files with 6 additions and 2 deletions
8
index.js
8
index.js
|
@ -3,8 +3,12 @@ const fs = require('fs')
|
||||||
const execa = require('execa')
|
const execa = require('execa')
|
||||||
|
|
||||||
void function main() {
|
void function main() {
|
||||||
ssh()
|
try {
|
||||||
dep()
|
ssh()
|
||||||
|
dep()
|
||||||
|
} catch (err) {
|
||||||
|
core.setFailed(err.message)
|
||||||
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
function ssh() {
|
function ssh() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue