Skip to content

Commit

Permalink
Merge pull request #328 from crazy-max/github-serverurl
Browse files Browse the repository at this point in the history
Handle GitHub server URL for default context
  • Loading branch information
crazy-max authored Apr 1, 2021
2 parents 6a12baa + 8f5c91a commit 2ec8f1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface Inputs {

export function defaultContext(): string {
if (!_defaultContext) {
_defaultContext = `https://github.com/${github.context.repo.owner}/${
_defaultContext = `${process.env.GITHUB_SERVER_URL || 'https://github.com'}/${github.context.repo.owner}/${
github.context.repo.repo
}.git#${github.context?.ref?.replace(/^refs\//, '')}`;
}
Expand Down

0 comments on commit 2ec8f1d

Please sign in to comment.