mirror of
				https://github.com/deployphp/action.git
				synced 2025-11-04 08:20:57 +00:00 
			
		
		
		
	fix: set failed on subprocess error
This commit is contained in:
		
					parent
					
						
							
								1f9078ddea
							
						
					
				
			
			
				commit
				
					
						75c3962435
					
				
			
		
					 1 changed files with 7 additions and 1 deletions
				
			
		
							
								
								
									
										8
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										8
									
								
								index.js
									
										
									
									
									
								
							| 
						 | 
					@ -55,5 +55,11 @@ function dep() {
 | 
				
			||||||
    dep = 'deployer.phar'
 | 
					    dep = 'deployer.phar'
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  execa(dep, split(core.getInput('dep'))).stdout.pipe(process.stdout);
 | 
					  const subprocess = execa(dep, split(core.getInput('dep')))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  subprocess.stdout.pipe(process.stdout);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  subprocess.catch(err => {
 | 
				
			||||||
 | 
					    core.setFailed(err.shortMessage)
 | 
				
			||||||
 | 
					  })
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue