mirror of
				https://gitea.com/actions/download-artifact.git
				synced 2025-10-31 00:58:16 +07:00 
			
		
		
		
	Refactor loop
This commit is contained in:
		
							parent
							
								
									b81a615862
								
							
						
					
					
						commit
						24aef17bbf
					
				| @ -124,17 +124,15 @@ async function run(): Promise<void> { | ||||
| 
 | ||||
|   const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS) | ||||
|   for (const chunk of chunkedPromises) { | ||||
|     await Promise.all(chunk) | ||||
|   } | ||||
| 
 | ||||
|   for (const dlPromise of downloadPromises) { | ||||
|     const outcome = await dlPromise | ||||
|     const result = await Promise.all(chunk) | ||||
|     for (const outcome of result) { | ||||
|       if (outcome.digestMismatch) { | ||||
|         core.warning( | ||||
|           `Artifact digest validation failed. Please verify the integrity of the artifact.` | ||||
|         ) | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| 
 | ||||
|   core.info(`Total of ${artifacts.length} artifact(s) downloaded`) | ||||
|   core.setOutput(Outputs.DownloadPath, resolvedPath) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user