Skip to content

Commit 8f5c91a

Browse files
committed
Handle GitHub server URL for default context
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
1 parent 9cf6eb2 commit 8f5c91a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/context.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface Inputs {
3737

3838
export function defaultContext(): string {
3939
if (!_defaultContext) {
40-
_defaultContext = `https://github.com/${github.context.repo.owner}/${
40+
_defaultContext = `${process.env.GITHUB_SERVER_URL || 'https://github.com'}/${github.context.repo.owner}/${
4141
github.context.repo.repo
4242
}.git#${github.context?.ref?.replace(/^refs\//, '')}`;
4343
}

0 commit comments

Comments
 (0)