mirror of
				https://github.com/actions/setup-node.git
				synced 2025-10-31 16:14:00 +08:00 
			
		
		
		
	add trim and silent true
This commit is contained in:
		
							
								
								
									
										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', ''); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Dmitry Shibanov
					Dmitry Shibanov