mirror of
				https://github.com/actions-rs/cargo.git
				synced 2025-10-31 16:13:51 +00:00 
			
		
		
		
	Add group and print the outputs
This commit is contained in:
		
							parent
							
								
									03012abe8b
								
							
						
					
					
						commit
						1f50d6efca
					
				| @ -49,8 +49,12 @@ async function main(): Promise<void> { | ||||
| 
 | ||||
|     try { | ||||
|         const { stdout, stderr } = await run(actionInput); | ||||
|         core.startGroup("setting outputs"); | ||||
|         console.log("stdout: ", stdout.slice(0, 50), "..."); | ||||
|         core.setOutput("stdout", stdout); | ||||
|         core.setOutput("stdout", stderr); | ||||
|         console.log("stderr: ", stderr.slice(0, 50), "..."); | ||||
|         core.setOutput("stderr", stderr); | ||||
|         core.endGroup(); | ||||
|     } catch (error) { | ||||
|         core.setFailed((<Error>error).message); | ||||
|     } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user