Compare commits

...

2 Commits

Author SHA1 Message Date
Ethan Chiu 2e85fd680e Fix Condition for Setting GITHUB_ACTION
Code Scanning - Action / CodeQL-Build (push) Has been cancelled
2020-08-03 21:25:14 -04:00
Ethan Chiu 2838dfa45c Fix Empty GITHUB_ACTION 2020-08-03 20:37:05 -04:00
+2 -2
View File
@@ -108,11 +108,11 @@ namespace GitHub.Runner.Worker
// the server will never send an empty context name. Generated context names start with "__"
if (step.ExecutionContext.Global.Variables.GetBoolean("DistributedTask.UseContextNameForGITHUBACTION") ?? false)
{
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);
step.ExecutionContext.SetGitHubContext("action", step.ExecutionContext.GetFullyQualifiedContextName());
}
else
{
step.ExecutionContext.SetGitHubContext("action", step.ExecutionContext.GetFullyQualifiedContextName());
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);
}
try