From 91b6c0aa5090fd4beb834c4e9a8b7f40eb03c9be Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Mon, 3 Apr 2023 10:19:31 +0900 Subject: [PATCH] fix: remove support for ghes alpha --- dist/index.js | 6 +----- src/git-auth-helper.ts | 8 +------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/dist/index.js b/dist/index.js index ce53ef1..6caa857 100644 --- a/dist/index.js +++ b/dist/index.js @@ -654,11 +654,7 @@ class GitAuthHelper { }); } getServerUrl() { - // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed - // See https://github.com/actions/checkout/blob/main/src/url-helper.ts#L22-L29 - return new url_1.URL(process.env['GITHUB_SERVER_URL'] || - process.env['GITHUB_URL'] || - 'https://github.com'); + return new url_1.URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com'); } } exports.GitAuthHelper = GitAuthHelper; diff --git a/src/git-auth-helper.ts b/src/git-auth-helper.ts index 80fc5f3..1b6c375 100644 --- a/src/git-auth-helper.ts +++ b/src/git-auth-helper.ts @@ -146,12 +146,6 @@ export class GitAuthHelper { } private getServerUrl(): URL { - // todo: remove GITHUB_URL after support for GHES Alpha is no longer needed - // See https://github.com/actions/checkout/blob/main/src/url-helper.ts#L22-L29 - return new URL( - process.env['GITHUB_SERVER_URL'] || - process.env['GITHUB_URL'] || - 'https://github.com' - ) + return new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com') } }