From 2d43c04c2245003cea3f7ae45b2c744956d69f1d Mon Sep 17 00:00:00 2001 From: Brian Cristante <33549821+brcrista@users.noreply.github.com> Date: Mon, 11 May 2020 17:14:02 -0400 Subject: [PATCH] Use an env var to point to an Actions Service dev instance (#468) * Use an environment variable for the testing backdoor * Make the env var a boolean We'll still have to pass the URL on the command line * Empty commit to rerun CI --- src/Runner.Listener/Configuration/ConfigurationManager.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Runner.Listener/Configuration/ConfigurationManager.cs b/src/Runner.Listener/Configuration/ConfigurationManager.cs index 289ccaa1a..9a98c7d65 100644 --- a/src/Runner.Listener/Configuration/ConfigurationManager.cs +++ b/src/Runner.Listener/Configuration/ConfigurationManager.cs @@ -92,9 +92,11 @@ namespace GitHub.Runner.Listener.Configuration _term.WriteSection("Authentication"); while (true) { - // Get the URL + // When testing against a dev deployment of Actions Service, set this environment variable + var useDevActionsServiceUrl = Environment.GetEnvironmentVariable("USE_DEV_ACTIONS_SERVICE_URL"); var inputUrl = command.GetUrl(); - if (inputUrl.Contains("codedev.ms", StringComparison.OrdinalIgnoreCase)) + if (inputUrl.Contains("codedev.ms", StringComparison.OrdinalIgnoreCase) + || useDevActionsServiceUrl != null) { runnerSettings.ServerUrl = inputUrl; // Get the credentials