mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 19:23:59 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -8404,6 +8404,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat | |||||||
|                 yield downloadFile(archiveUrl, fileStream); |                 yield downloadFile(archiveUrl, fileStream); | ||||||
|             } |             } | ||||||
|             finally { |             finally { | ||||||
|  |                 fileStream.end(); | ||||||
|                 yield fileStreamClosed; |                 yield fileStreamClosed; | ||||||
|             } |             } | ||||||
|             // return Buffer.from(response.data) // response.data is ArrayBuffer |             // return Buffer.from(response.data) // response.data is ArrayBuffer | ||||||
|   | |||||||
| @@ -69,6 +69,7 @@ export async function downloadRepository( | |||||||
|       core.info('Downloading the archive') // Do not print the archive URL because it has an embedded token |       core.info('Downloading the archive') // Do not print the archive URL because it has an embedded token | ||||||
|       await downloadFile(archiveUrl, fileStream) |       await downloadFile(archiveUrl, fileStream) | ||||||
|     } finally { |     } finally { | ||||||
|  |       fileStream.end() | ||||||
|       await fileStreamClosed |       await fileStreamClosed | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 eric sciple
					eric sciple