Use API URL instead of Server URL

This commit is contained in:
Josh Gross 2023-11-16 18:51:10 -05:00
parent 4cc0320b36
commit 85717e4e3b
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

2
dist/index.js vendored
View file

@ -35510,7 +35510,7 @@ async function main() {
previews: previews ? previews.split(',') : undefined,
retry: retryOpts,
request: requestOpts,
baseUrl: baseUrl || lib_github.context.serverUrl
baseUrl: baseUrl || lib_github.context.apiUrl
};
const github = (0,lib_github.getOctokit)(token, opts, plugin_retry_dist_node.retry, dist_node.requestLog);
const script = core.getInput('script', { required: true });

View file

@ -45,7 +45,7 @@ async function main(): Promise<void> {
previews: previews ? previews.split(',') : undefined,
retry: retryOpts,
request: requestOpts,
baseUrl: baseUrl || context.serverUrl
baseUrl: baseUrl || context.apiUrl
}
const github = getOctokit(token, opts, retry, requestLog)