mirror of
https://github.com/actions/github-script.git
synced 2026-04-07 06:39:25 +00:00
Avoid setting baseUrl to undefined when input is not provided
This commit is contained in:
parent
e69ef5462f
commit
d319f8f5b5
3 changed files with 88 additions and 4 deletions
8
dist/index.js
vendored
8
dist/index.js
vendored
|
|
@ -35509,9 +35509,13 @@ async function main() {
|
|||
userAgent: userAgent || undefined,
|
||||
previews: previews ? previews.split(',') : undefined,
|
||||
retry: retryOpts,
|
||||
request: requestOpts,
|
||||
baseUrl: baseUrl || undefined
|
||||
request: requestOpts
|
||||
};
|
||||
// Setting `baseUrl` to undefined will prevent the default value from being used
|
||||
// https://github.com/actions/github-script/issues/436
|
||||
if (baseUrl) {
|
||||
opts.baseUrl = baseUrl;
|
||||
}
|
||||
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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue