diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2020-03-25 15:12:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-25 15:12:22 -0400 |
| commit | 18fd0bc59958dd73f02ac7a98cb5995f83e6f1de (patch) | |
| tree | b7dd7374364d23c08a542687b7f9033c9e271bc5 /src/github-api-helper.ts | |
| parent | e8e736100be926c1708f65609a1458e5e36bda31 (diff) | |
changes to support ghes alpha release (#199)
Diffstat (limited to 'src/github-api-helper.ts')
| -rw-r--r-- | src/github-api-helper.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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<Buffer> { - const octokit = new github.GitHub(authToken) + const octokit = new github.GitHub(authToken, {baseUrl: urlHelper.getApiUrl()}) const params: ReposGetArchiveLinkParams = { owner: owner, repo: repo, |
