add trim and silent true
This commit is contained in:
1 parent
28ad38fe06
commit
072a2e3b10
2 files changed
+5
-4
No files matched your search
Vendored
+2
-2
@@ -71847,8 +71847,8 @@ function run() {
|
||||
}
|
||||
// Output version of node is being used
|
||||
try {
|
||||
const { stdout: installedVersion } = yield exec.getExecOutput('node', ['--version'], { ignoreReturnCode: true, silent: false });
|
||||
core.setOutput('node-version', installedVersion);
|
||||
const { stdout: installedVersion } = yield exec.getExecOutput('node', ['--version'], { ignoreReturnCode: true, silent: true });
|
||||
core.setOutput('node-version', installedVersion.trim());
|
||||
}
|
||||
catch (err) {
|
||||
core.setOutput('node-version', '');
|
||||
|
||||
Reference in new issue
Block a user