mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-01 06:18:06 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @@ -8391,9 +8391,11 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat | ||||
|                     ref: refHelper.getDownloadRef(ref, commit) | ||||
|                 }; | ||||
|                 const response = yield octokit.repos.getArchiveLink(params); | ||||
|                 console.log('GOT THE RESPONSE'); | ||||
|                 if (response.status != 302) { | ||||
|                     throw new Error(`Unexpected response from GitHub API. Status: '${response.status}'`); | ||||
|                 } | ||||
|                 console.log('GETTING THE LOCATION'); | ||||
|                 const archiveUrl = response.headers['Location']; // Do not print the archive URL because it has an embedded token | ||||
|                 assert.ok(archiveUrl, `Expected GitHub API response to contain 'Location' header`); | ||||
|                 // Download the archive | ||||
|   | ||||
		Reference in New Issue
	
	Block a user