Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple committed May 17, 2020
1 parent 5a7a9a0 commit 222d743
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4667,7 +4667,7 @@ function run() {
}
exports.run = run;
function isGhes() {
const ghUrl = new url_1.URL(process.env['GITHUB_URL'] || 'https://github.com');
const ghUrl = new url_1.URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
}
//# sourceMappingURL=main.js.map
Expand Down
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ export async function run() {
}

function isGhes(): boolean {
const ghUrl = new URL(process.env['GITHUB_URL'] || 'https://github.com');
const ghUrl = new URL(
process.env['GITHUB_SERVER_URL'] || 'https://github.com'
);
return ghUrl.hostname.toUpperCase() !== 'GITHUB.COM';
}

0 comments on commit 222d743

Please sign in to comment.