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,15 +124,13 @@ async function run(): Promise<void> { | |||||||
| 
 | 
 | ||||||
|   const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS) |   const chunkedPromises = chunk(downloadPromises, PARALLEL_DOWNLOADS) | ||||||
|   for (const chunk of chunkedPromises) { |   for (const chunk of chunkedPromises) { | ||||||
|     await Promise.all(chunk) |     const result = await Promise.all(chunk) | ||||||
|   } |     for (const outcome of result) { | ||||||
| 
 |       if (outcome.digestMismatch) { | ||||||
|   for (const dlPromise of downloadPromises) { |         core.warning( | ||||||
|     const outcome = await dlPromise |           `Artifact digest validation failed. Please verify the integrity of the artifact.` | ||||||
|     if (outcome.digestMismatch) { |         ) | ||||||
|       core.warning( |       } | ||||||
|         `Artifact digest validation failed. Please verify the integrity of the artifact.` |  | ||||||
|       ) |  | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user