mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-23 20:05:33 +00:00
switch GITHUB_URL to GITHUB_SERVER_URL (#248)
This commit is contained in:
parent
ac455590d1
commit
7523e23789
2 changed files with 10 additions and 2 deletions
|
@ -20,5 +20,10 @@ export function getFetchUrl(settings: IGitSourceSettings): string {
|
|||
}
|
||||
|
||||
export function getServerUrl(): URL {
|
||||
return new URL(process.env['GITHUB_URL'] || 'https://github.com')
|
||||
// todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
|
||||
return new URL(
|
||||
process.env['GITHUB_SERVER_URL'] ||
|
||||
process.env['GITHUB_URL'] ||
|
||||
'https://github.com'
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue