feat: github-api-url (#88)

closes #77

---------

Co-authored-by: Parker Brown <17183625+parkerbxyz@users.noreply.github.com>
This commit is contained in:
Gregor Martynus
2024-01-26 10:51:16 -08:00
committed by GitHub
parent c4fa18d55c
commit 837e2752e0
15 changed files with 107 additions and 55 deletions

View File

@@ -31,6 +31,8 @@ const skipTokenRevoke = Boolean(
core.getInput("skip-token-revoke") || core.getInput("skip_token_revoke")
);
const baseUrl = core.getInput("github-api-url").replace(/\/$/, "");
main(
appId,
privateKey,
@@ -38,9 +40,7 @@ main(
repositories,
core,
createAppAuth,
request.defaults({
baseUrl: process.env["GITHUB_API_URL"],
}),
request.defaults({ baseUrl }),
skipTokenRevoke
).catch((error) => {
/* c8 ignore next 3 */