fix: bug with retrieving submodules (#1172)
This commit is contained in:
		
							parent
							
								
									024242fc77
								
							
						
					
					
						commit
						9fdfe4cf16
					
				
							
								
								
									
										6
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/index.js
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -808,11 +808,9 @@ function run() { | |||||||
|         const hasSubmodule = yield (0, utils_1.submoduleExists)({ cwd: workingDirectory }); |         const hasSubmodule = yield (0, utils_1.submoduleExists)({ cwd: workingDirectory }); | ||||||
|         let gitExtraArgs = ['--no-tags', '--prune', '--recurse-submodules']; |         let gitExtraArgs = ['--no-tags', '--prune', '--recurse-submodules']; | ||||||
|         const isTag = (_a = env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.startsWith('refs/tags/'); |         const isTag = (_a = env.GITHUB_REF) === null || _a === void 0 ? void 0 : _a.startsWith('refs/tags/'); | ||||||
|         const submodulePaths = []; |         let submodulePaths = []; | ||||||
|         if (hasSubmodule) { |         if (hasSubmodule) { | ||||||
|             submodulePaths.concat(...(yield (0, utils_1.getSubmodulePath)({ |             submodulePaths = yield (0, utils_1.getSubmodulePath)({ cwd: workingDirectory }); | ||||||
|                 cwd: workingDirectory |  | ||||||
|             }))); |  | ||||||
|         } |         } | ||||||
|         if (isTag) { |         if (isTag) { | ||||||
|             gitExtraArgs = ['--prune', '--no-recurse-submodules']; |             gitExtraArgs = ['--prune', '--no-recurse-submodules']; | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js.map
									
									
									
										generated
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| @ -54,14 +54,10 @@ export async function run(): Promise<void> { | |||||||
|   const hasSubmodule = await submoduleExists({cwd: workingDirectory}) |   const hasSubmodule = await submoduleExists({cwd: workingDirectory}) | ||||||
|   let gitExtraArgs = ['--no-tags', '--prune', '--recurse-submodules'] |   let gitExtraArgs = ['--no-tags', '--prune', '--recurse-submodules'] | ||||||
|   const isTag = env.GITHUB_REF?.startsWith('refs/tags/') |   const isTag = env.GITHUB_REF?.startsWith('refs/tags/') | ||||||
|   const submodulePaths: string[] = [] |   let submodulePaths: string[] = [] | ||||||
| 
 | 
 | ||||||
|   if (hasSubmodule) { |   if (hasSubmodule) { | ||||||
|     submodulePaths.concat( |     submodulePaths = await getSubmodulePath({cwd: workingDirectory}) | ||||||
|       ...(await getSubmodulePath({ |  | ||||||
|         cwd: workingDirectory |  | ||||||
|       })) |  | ||||||
|     ) |  | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   if (isTag) { |   if (isTag) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Tonye Jack
						Tonye Jack