mirror of
https://github.com/actions/github-script.git
synced 2026-02-07 19:47:26 +00:00
Add debug logging for base URL
This commit is contained in:
parent
28e431842a
commit
df3133d1ed
2 changed files with 7 additions and 0 deletions
4
dist/index.js
vendored
4
dist/index.js
vendored
|
|
@ -35512,8 +35512,12 @@ async function main() {
|
|||
request: requestOpts
|
||||
};
|
||||
if (baseUrl) {
|
||||
debug && console.log(`Using custom base URL: ${baseUrl}`);
|
||||
opts.baseUrl = baseUrl;
|
||||
}
|
||||
else {
|
||||
debug && console.log('Using default base URL');
|
||||
}
|
||||
const github = (0,lib_github.getOctokit)(token, opts, plugin_retry_dist_node.retry, dist_node.requestLog);
|
||||
const script = core.getInput('script', { required: true });
|
||||
// Using property/value shorthand on `require` (e.g. `{require}`) causes compilation errors.
|
||||
|
|
|
|||
|
|
@ -48,7 +48,10 @@ async function main(): Promise<void> {
|
|||
}
|
||||
|
||||
if (baseUrl) {
|
||||
debug && console.log(`Using custom base URL: ${baseUrl}`)
|
||||
opts.baseUrl = baseUrl
|
||||
} else {
|
||||
debug && console.log('Using default base URL')
|
||||
}
|
||||
|
||||
const github = getOctokit(token, opts, retry, requestLog)
|
||||
|
|
|
|||
Loading…
Reference in a new issue