Skip to content

Commit

Permalink
Set baseUrl for Octokit to make it work on GitHub Enterprise Server
Browse files Browse the repository at this point in the history
  • Loading branch information
palloberg committed Sep 27, 2024
1 parent 1ff3075 commit 4a60710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async function setup() {
if (version.length === 0) {
// If no version is specified, the latest version is used by default.
const token = core.getInput('token', {required: true});
const octokit = getOctokit(token);
const octokit = getOctokit(token, {baseUrl: 'https://api.github.com'});
const release = await octokit.rest.repos.getLatestRelease({
owner: 'mozilla',
repo: 'sccache'
Expand Down

0 comments on commit 4a60710

Please sign in to comment.