From 18fd0bc59958dd73f02ac7a98cb5995f83e6f1de Mon Sep 17 00:00:00 2001 From: eric sciple Date: Wed, 25 Mar 2020 15:12:22 -0400 Subject: changes to support ghes alpha release (#199) --- src/github-api-helper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/github-api-helper.ts') diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts index 83a2b86..df11a85 100644 --- a/src/github-api-helper.ts +++ b/src/github-api-helper.ts @@ -6,6 +6,7 @@ import * as io from '@actions/io' import * as path from 'path' import * as retryHelper from './retry-helper' import * as toolCache from '@actions/tool-cache' +import * as urlHelper from './url-helper' import {default as uuid} from 'uuid/v4' import {ReposGetArchiveLinkParams} from '@octokit/rest' @@ -74,7 +75,7 @@ async function downloadArchive( ref: string, commit: string ): Promise { - const octokit = new github.GitHub(authToken) + const octokit = new github.GitHub(authToken, {baseUrl: urlHelper.getApiUrl()}) const params: ReposGetArchiveLinkParams = { owner: owner, repo: repo, -- cgit v1.2.3