From d2f712fdfbc061de641d2a28f3c8de9bd87e9e39 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Tue, 10 Nov 2020 23:05:39 +0100 Subject: [PATCH] Add catch --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6736e8b..4acf2bc 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,12 @@ const fs = require('fs') const execa = require('execa') void function main() { - ssh() - dep() + try { + ssh() + dep() + } catch (err) { + core.setFailed(err.message) + } }() function ssh() {