mirror of
				https://github.com/deployphp/action.git
				synced 2025-10-30 22:10:55 +00:00 
			
		
		
		
	Fix argv split
This commit is contained in:
		
					parent
					
						
							
								97c09aab21
							
						
					
				
			
			
				commit
				
					
						cc5f2d19c6
					
				
			
		
					 3 changed files with 8 additions and 1 deletions
				
			
		
							
								
								
									
										3
									
								
								index.js
									
										
									
									
									
								
							
							
						
						
									
										3
									
								
								index.js
									
										
									
									
									
								
							|  | @ -1,6 +1,7 @@ | |||
| const core = require('@actions/core') | ||||
| const fs = require('fs') | ||||
| const execa = require('execa') | ||||
| const split = require('argv-split') | ||||
| 
 | ||||
| void function main() { | ||||
|   try { | ||||
|  | @ -45,5 +46,5 @@ function dep() { | |||
|     dep = 'deployer.phar' | ||||
|   } | ||||
| 
 | ||||
|   execa.commandSync(`${dep} ${core.getInput('dep')}`) | ||||
|   execa.sync(dep, split(core.getInput('dep'))) | ||||
| } | ||||
|  |  | |||
							
								
								
									
										5
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										5
									
								
								package-lock.json
									
										
									
										generated
									
									
									
								
							|  | @ -7,6 +7,11 @@ | |||
|       "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.2.6.tgz", | ||||
|       "integrity": "sha512-ZQYitnqiyBc3D+k7LsgSBmMDVkOVidaagDG7j3fOym77jNunWRuYx7VSHa9GNfFZh+zh61xsCjRj4JxMZlDqTA==" | ||||
|     }, | ||||
|     "argv-split": { | ||||
|       "version": "2.0.1", | ||||
|       "resolved": "https://registry.npmjs.org/argv-split/-/argv-split-2.0.1.tgz", | ||||
|       "integrity": "sha1-viZBF3kNvVzNY+w/RJoYBIFKxMU=" | ||||
|     }, | ||||
|     "cross-spawn": { | ||||
|       "version": "7.0.3", | ||||
|       "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", | ||||
|  |  | |||
|  | @ -2,6 +2,7 @@ | |||
|   "private": true, | ||||
|   "dependencies": { | ||||
|     "@actions/core": "^1.2.6", | ||||
|     "argv-split": "^2.0.1", | ||||
|     "execa": "^4.1.0" | ||||
|   } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue