mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 07:30:32 +00:00 
			
		
		
		
	.
This commit is contained in:
		| @@ -12,12 +12,17 @@ export async function downloadRepository( | ||||
| ): Promise<void> { | ||||
|   const octokit = new github.GitHub(accessToken) | ||||
|   const params: ReposGetArchiveLinkParams = { | ||||
|     archive_format: IS_WINDOWS ? 'zipball' : 'tarball', | ||||
|     archive_format: IS_WINDOWS ? 'zipball' : 'tarballl', | ||||
|     owner: owner, | ||||
|     repo: repo, | ||||
|     ref: ref | ||||
|   } | ||||
|   const response = await octokit.repos.getArchiveLink(params) | ||||
|   if (response.status != 200) { | ||||
|     throw new Error( | ||||
|       `GitHub API call failed with response status '${response.status}': ${response.data}` | ||||
|     ) | ||||
|   } | ||||
|   console.log(`status=${response.status}`) | ||||
|   console.log(`headers=${JSON.stringify(response.headers)}`) | ||||
|   console.log(`data=${JSON.stringify(typeof response.data)}`) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 eric sciple
					eric sciple