mirror of
https://github.com/actions/setup-node.git
synced 2025-05-11 19:53:43 +00:00
add trim and silent true
This commit is contained in:
parent
28ad38fe06
commit
072a2e3b10
2 changed files with 5 additions and 4 deletions
4
dist/setup/index.js
vendored
4
dist/setup/index.js
vendored
|
@ -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', '');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue