fix in correct check (#778)

This commit is contained in:
Yashwanth Anantharaju
2020-10-30 14:34:00 -04:00
committed by GitHub
parent ce92d7a6b5
commit 5ba7affea4

View File

@@ -430,7 +430,7 @@ namespace GitHub.Runner.Worker
var environmentUrlToken = templateEvaluator.EvaluateEnvironmentUrl(jobContext.ActionsEnvironment.Url, context.ExpressionValues, context.ExpressionFunctions);
var environmentUrl = environmentUrlToken.AssertString("environment.url");
if (string.Equals(environmentUrl.Value, HostContext.SecretMasker.MaskSecrets(environmentUrl.Value)))
if (!string.Equals(environmentUrl.Value, HostContext.SecretMasker.MaskSecrets(environmentUrl.Value)))
{
context.Warning($"Skip setting environment url as environment '{jobContext.ActionsEnvironment.Name}' may contain secret.");
}