mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 21:39:16 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -8398,7 +8398,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat
 | 
			
		||||
                assert.ok(archiveUrl, `Expected GitHub API response to contain 'Location' header`);
 | 
			
		||||
                // Download the archive
 | 
			
		||||
                core.info('Downloading the archive'); // Do not print the archive URL because it has an embedded token
 | 
			
		||||
                downloadFile(archiveUrl, fileStream);
 | 
			
		||||
                yield downloadFile(archiveUrl, fileStream);
 | 
			
		||||
            }
 | 
			
		||||
            finally {
 | 
			
		||||
                yield fileStreamClosed;
 | 
			
		||||
 
 | 
			
		||||
@@ -64,7 +64,7 @@ export async function downloadRepository(
 | 
			
		||||
 | 
			
		||||
      // Download the archive
 | 
			
		||||
      core.info('Downloading the archive') // Do not print the archive URL because it has an embedded token
 | 
			
		||||
      downloadFile(archiveUrl, fileStream)
 | 
			
		||||
      await downloadFile(archiveUrl, fileStream)
 | 
			
		||||
    } finally {
 | 
			
		||||
      await fileStreamClosed
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user