mirror of
				https://gitea.com/actions/download-artifact.git
				synced 2025-10-31 09:08:16 +07:00 
			
		
		
		
	
						commit
						95815c38cf
					
				
							
								
								
									
										3
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/test.yml
									
									
									
									
										vendored
									
									
								
							| @ -40,6 +40,9 @@ jobs: | |||||||
|     - name: Format |     - name: Format | ||||||
|       run: npm run format-check |       run: npm run format-check | ||||||
| 
 | 
 | ||||||
|  |     - name: Run Unit Tests | ||||||
|  |       run: npm test | ||||||
|  | 
 | ||||||
|     - name: Create artifacts |     - name: Create artifacts | ||||||
|       run: | |       run: | | ||||||
|         mkdir -p path/to/artifact-A |         mkdir -p path/to/artifact-A | ||||||
|  | |||||||
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -118857,10 +118857,10 @@ function run() { | |||||||
|                     core.warning(`Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`); |                     core.warning(`Artifact '${artifactName}' digest validation failed. Please verify the integrity of the artifact.`); | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|  |         } | ||||||
|         core.info(`Total of ${artifacts.length} artifact(s) downloaded`); |         core.info(`Total of ${artifacts.length} artifact(s) downloaded`); | ||||||
|         core.setOutput(constants_1.Outputs.DownloadPath, resolvedPath); |         core.setOutput(constants_1.Outputs.DownloadPath, resolvedPath); | ||||||
|         core.info('Download artifact has finished successfully'); |         core.info('Download artifact has finished successfully'); | ||||||
|         } |  | ||||||
|     }); |     }); | ||||||
| } | } | ||||||
| exports.run = run; | exports.run = run; | ||||||
|  | |||||||
| @ -138,11 +138,11 @@ export async function run(): Promise<void> { | |||||||
|         ) |         ) | ||||||
|       } |       } | ||||||
|     } |     } | ||||||
|  |   } | ||||||
|   core.info(`Total of ${artifacts.length} artifact(s) downloaded`) |   core.info(`Total of ${artifacts.length} artifact(s) downloaded`) | ||||||
|   core.setOutput(Outputs.DownloadPath, resolvedPath) |   core.setOutput(Outputs.DownloadPath, resolvedPath) | ||||||
|   core.info('Download artifact has finished successfully') |   core.info('Download artifact has finished successfully') | ||||||
| } | } | ||||||
| } |  | ||||||
| 
 | 
 | ||||||
| run().catch(err => | run().catch(err => | ||||||
|   core.setFailed(`Unable to download artifact(s): ${err.message}`) |   core.setFailed(`Unable to download artifact(s): ${err.message}`) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user