Skip to content

Commit 4a60710

Browse files
committed
Set baseUrl for Octokit to make it work on GitHub Enterprise Server
1 parent 1ff3075 commit 4a60710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/setup.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ async function setup() {
3131
if (version.length === 0) {
3232
// If no version is specified, the latest version is used by default.
3333
const token = core.getInput('token', {required: true});
34-
const octokit = getOctokit(token);
34+
const octokit = getOctokit(token, {baseUrl: 'https://api.github.com'});
3535
const release = await octokit.rest.repos.getLatestRelease({
3636
owner: 'mozilla',
3737
repo: 'sccache'

0 commit comments

Comments
 (0)