Skip to content

Commit

Permalink
0.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
garygrossgarten committed Jan 8, 2021
1 parent 188f16d commit 2b10f41
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11352,6 +11352,9 @@ function executeCommand(ssh, command) {
throw Error(`Command exited with code ${code}`);
}
console.log('✅ SSH Action finished.');
if (ssh.isConnected()) {
ssh.dispose();
}
}
catch (err) {
console.error(`⚠️ An error happened executing command ${command}.`, (_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : err);
Expand All @@ -11360,6 +11363,10 @@ function executeCommand(ssh, command) {
}
});
}
process.on('uncaughtException', (err) => {
if (err['code'] !== 'ECONNRESET')
throw err;
});
run();


Expand Down
7 changes: 7 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function executeCommand(ssh, command) {
throw Error(`Command exited with code ${code}`);
}
console.log('✅ SSH Action finished.');
if (ssh.isConnected()) {
ssh.dispose();
}
}
catch (err) {
console.error(`⚠️ An error happened executing command ${command}.`, (_a = err === null || err === void 0 ? void 0 : err.message) !== null && _a !== void 0 ? _a : err);
Expand All @@ -105,4 +108,8 @@ function executeCommand(ssh, command) {
}
});
}
process.on('uncaughtException', (err) => {
if (err['code'] !== 'ECONNRESET')
throw err;
});
run();
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@garygrossgarten/github-action-ssh",
"version": "0.6.3",
"version": "0.6.4",
"description": "Run commands on a remote server via SSH.",
"repository": {
"type": "git",
Expand Down

0 comments on commit 2b10f41

Please sign in to comment.