Skip to content

Commit

Permalink
debug remote command issue
Browse files Browse the repository at this point in the history
  • Loading branch information
littleomie committed Jun 27, 2024
1 parent 9eb3ab4 commit 0ec93f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Shush'
name: 'GitHub Actions Shush'
description: 'Runs commands on remote server'
inputs:
host:
Expand Down
8 changes: 3 additions & 5 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26473,19 +26473,17 @@ const main = async () => {
}

stream.on('close', (code) => {
output += `\nCommand '${command}' exited with code ${code}\n`;
console.log(`\nCommand '${command}' exited with code ${code}\n`);
executeNextCommand(commands);
}).on('data', (data) => {
output += data.toString();
console.log(data.toString());
}).stderr.on('data', (data) => {
output += data.toString();
console.log(data.toString());
});
});
}

executeNextCommand(commands.split('\n'));

console.log(output);
}).on('error', (err) => {
core.setFailed(err.message);
}).connect(credentials);
Expand Down
8 changes: 3 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,19 +52,17 @@ const main = async () => {
}

stream.on('close', (code) => {
output += `\nCommand '${command}' exited with code ${code}\n`;
console.log(`\nCommand '${command}' exited with code ${code}\n`);
executeNextCommand(commands);
}).on('data', (data) => {
output += data.toString();
console.log(data.toString());
}).stderr.on('data', (data) => {
output += data.toString();
console.log(data.toString());
});
});
}

executeNextCommand(commands.split('\n'));

console.log(output);
}).on('error', (err) => {
core.setFailed(err.message);
}).connect(credentials);
Expand Down

0 comments on commit 0ec93f0

Please sign in to comment.