Set octokit's baseUrl explicitly (#24)
This commit is contained in:
parent
a70df706fa
commit
a948e3e824
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
|
@ -70,7 +70,9 @@ async function downloadBazelisk() {
|
|||
}
|
||||
|
||||
const token = core.getInput('token')
|
||||
const octokit = github.getOctokit(token)
|
||||
const octokit = github.getOctokit(token, {
|
||||
baseUrl: 'https://api.github.com'
|
||||
})
|
||||
const { data: releases } = await octokit.rest.repos.listReleases({
|
||||
owner: 'bazelbuild',
|
||||
repo: 'bazelisk'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue