mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:36:23 +00:00
Fix Condition for Setting GITHUB_ACTION
This commit is contained in:
@@ -61,7 +61,7 @@ namespace GitHub.Runner.Worker.Handlers
|
||||
var compositeGitHubContext = new GitHubContext();
|
||||
foreach (var pair in githubContext)
|
||||
{
|
||||
compositeGitHubContext[pair.Key] = pair.Value.Clone();
|
||||
compositeGitHubContext[pair.Key] = pair.Value;
|
||||
}
|
||||
|
||||
foreach (Pipelines.ActionStep actionStep in actionSteps)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user