From 2be59d6c10ee257f380d9bc3fd326817fe590d13 Mon Sep 17 00:00:00 2001 From: JoannaaKL Date: Fri, 2 Jun 2023 09:13:28 +0000 Subject: [PATCH] Use consistent forms --- src/Runner.Common/Constants.cs | 2 +- src/Runner.Worker/ExecutionContext.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Runner.Common/Constants.cs b/src/Runner.Common/Constants.cs index 4cba95c75..be1b2e679 100644 --- a/src/Runner.Common/Constants.cs +++ b/src/Runner.Common/Constants.cs @@ -155,7 +155,7 @@ namespace GitHub.Runner.Common { public static readonly string DiskSpaceWarning = "runner.diskspace.warning"; 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 AllowRunnerContainerHooks = "DistributedTask.AllowRunnerContainerHooks"; } diff --git a/src/Runner.Worker/ExecutionContext.cs b/src/Runner.Worker/ExecutionContext.cs index 268379dfc..04687b680 100644 --- a/src/Runner.Worker/ExecutionContext.cs +++ b/src/Runner.Worker/ExecutionContext.cs @@ -1423,7 +1423,7 @@ namespace GitHub.Runner.Worker 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); }