mirror of
				https://gitea.com/actions/download-artifact.git
				synced 2025-10-31 09:08:16 +07:00 
			
		
		
		
	Break the thing, also log the expected digest
This commit is contained in:
		
							parent
							
								
									049eba1e9a
								
							
						
					
					
						commit
						9ff67cb2d2
					
				| @ -106,7 +106,7 @@ async function run(): Promise<void> { | |||||||
|     core.info(`Preparing to download the following artifacts:`) |     core.info(`Preparing to download the following artifacts:`) | ||||||
|     artifacts.forEach(artifact => { |     artifacts.forEach(artifact => { | ||||||
|       core.info( |       core.info( | ||||||
|         `- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})` |         `- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size}, Expected Digest: ${artifact.digest})` | ||||||
|       ) |       ) | ||||||
|     }) |     }) | ||||||
|   } |   } | ||||||
| @ -132,7 +132,7 @@ async function run(): Promise<void> { | |||||||
|       const outcome = results[i] |       const outcome = results[i] | ||||||
|       const artifactName = chunk[i].name |       const artifactName = chunk[i].name | ||||||
| 
 | 
 | ||||||
|       if (outcome.digestMismatch) { |       if (!outcome.digestMismatch) { | ||||||
|         core.warning( |         core.warning( | ||||||
|           `Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.` |           `Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.` | ||||||
|         ) |         ) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user