Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/src/github-api-helper.ts
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2020-03-25 15:12:22 -0400
committerGitHub <noreply@github.com>2020-03-25 15:12:22 -0400
commit18fd0bc59958dd73f02ac7a98cb5995f83e6f1de (patch)
treeb7dd7374364d23c08a542687b7f9033c9e271bc5 /src/github-api-helper.ts
parente8e736100be926c1708f65609a1458e5e36bda31 (diff)
changes to support ghes alpha release (#199)
Diffstat (limited to 'src/github-api-helper.ts')
-rw-r--r--src/github-api-helper.ts3
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,