mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
add _IS_GITHUB to overwrite URL switch.
This commit is contained in:
@@ -93,9 +93,11 @@ namespace GitHub.Runner.Listener.Configuration
|
|||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
// Get the URL
|
// Get the URL
|
||||||
|
var isGitHub = StringUtil.ConvertToBoolean(Environment.GetEnvironmentVariable("_IS_GITHUB"));
|
||||||
var inputUrl = command.GetUrl();
|
var inputUrl = command.GetUrl();
|
||||||
if (!inputUrl.Contains("github.com", StringComparison.OrdinalIgnoreCase) &&
|
if (!inputUrl.Contains("github.com", StringComparison.OrdinalIgnoreCase) &&
|
||||||
!inputUrl.Contains("github.localhost", StringComparison.OrdinalIgnoreCase))
|
!inputUrl.Contains("github.localhost", StringComparison.OrdinalIgnoreCase) &&
|
||||||
|
!isGitHub)
|
||||||
{
|
{
|
||||||
runnerSettings.ServerUrl = inputUrl;
|
runnerSettings.ServerUrl = inputUrl;
|
||||||
// Get the credentials
|
// Get the credentials
|
||||||
|
|||||||
Reference in New Issue
Block a user