fix: remove support for ghes alpha
This commit is contained in:
parent
7e89f36e54
commit
91b6c0aa50
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -654,11 +654,7 @@ class GitAuthHelper {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
getServerUrl() {
|
getServerUrl() {
|
||||||
// todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
|
return new url_1.URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com');
|
||||||
// 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');
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.GitAuthHelper = GitAuthHelper;
|
exports.GitAuthHelper = GitAuthHelper;
|
||||||
|
|||||||
@ -146,12 +146,6 @@ export class GitAuthHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private getServerUrl(): URL {
|
private getServerUrl(): URL {
|
||||||
// todo: remove GITHUB_URL after support for GHES Alpha is no longer needed
|
return new URL(process.env['GITHUB_SERVER_URL'] || 'https://github.com')
|
||||||
// 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'
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user