mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/upload-artifact
				synced 2025-10-30 23:21:08 +08:00 
			
		
		
		
	Display a warning if user tries to upload over 10000 files
This commit is contained in:
		
							parent
							
								
									a1af2e8f43
								
							
						
					
					
						commit
						0fbc4b771a
					
				| @ -37,6 +37,12 @@ async function run(): Promise<void> { | |||||||
|       ) |       ) | ||||||
|       core.debug(`Root artifact directory is ${searchResult.rootDirectory}`) |       core.debug(`Root artifact directory is ${searchResult.rootDirectory}`) | ||||||
| 
 | 
 | ||||||
|  |       if (searchResult.filesToUpload.length > 10000) { | ||||||
|  |         core.warning( | ||||||
|  |           `There are over 10,000 files in this artifact, consider create an archive before upload to improve the upload performance.` | ||||||
|  |         ) | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|       const artifactClient = create() |       const artifactClient = create() | ||||||
|       const options: UploadOptions = { |       const options: UploadOptions = { | ||||||
|         continueOnError: false |         continueOnError: false | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Yang Cao
						Yang Cao