Use consistent forms

This commit is contained in:
JoannaaKL
2023-06-02 09:13:28 +00:00
committed by GitHub
parent 4fa33ad4ec
commit 2be59d6c10
2 changed files with 2 additions and 2 deletions

View File

@@ -155,7 +155,7 @@ namespace GitHub.Runner.Common
{ {
public static readonly string DiskSpaceWarning = "runner.diskspace.warning"; public static readonly string DiskSpaceWarning = "runner.diskspace.warning";
public static readonly string Node12Warning = "DistributedTask.AddWarningToNode12Action"; public static readonly string Node12Warning = "DistributedTask.AddWarningToNode12Action";
public static readonly string LogTemplateErrorsAsDebugMessage = "DistributedTask.LogTemplateErrorsAsDebugMessage"; public static readonly string LogTemplateErrorsAsDebugMessages = "DistributedTask.LogTemplateErrorAsDebugMessage";
public static readonly string UseContainerPathForTemplate = "DistributedTask.UseContainerPathForTemplate"; public static readonly string UseContainerPathForTemplate = "DistributedTask.UseContainerPathForTemplate";
public static readonly string AllowRunnerContainerHooks = "DistributedTask.AllowRunnerContainerHooks"; public static readonly string AllowRunnerContainerHooks = "DistributedTask.AllowRunnerContainerHooks";
} }

View File

@@ -1423,7 +1423,7 @@ namespace GitHub.Runner.Worker
private bool logTemplateErrorsAsDebugMessage() private bool logTemplateErrorsAsDebugMessage()
{ {
_executionContext.Global.EnvironmentVariables.TryGetValue(Constants.Runner.Features.LogTemplateErrorsAsDebugMessage, out var logErrorsAsDebug); _executionContext.Global.EnvironmentVariables.TryGetValue(Constants.Runner.Features.LogTemplateErrorsAsDebugMessages, out var logErrorsAsDebug);
return StringUtil.ConvertToBoolean(logErrorsAsDebug, defaultValue: false); return StringUtil.ConvertToBoolean(logErrorsAsDebug, defaultValue: false);
} }