mirror of
https://github.com/actions/runner.git
synced 2025-12-11 12:57:05 +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();
|
var compositeGitHubContext = new GitHubContext();
|
||||||
foreach (var pair in githubContext)
|
foreach (var pair in githubContext)
|
||||||
{
|
{
|
||||||
compositeGitHubContext[pair.Key] = pair.Value.Clone();
|
compositeGitHubContext[pair.Key] = pair.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (Pipelines.ActionStep actionStep in actionSteps)
|
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 "__"
|
// the server will never send an empty context name. Generated context names start with "__"
|
||||||
if (step.ExecutionContext.Global.Variables.GetBoolean("DistributedTask.UseContextNameForGITHUBACTION") ?? false)
|
if (step.ExecutionContext.Global.Variables.GetBoolean("DistributedTask.UseContextNameForGITHUBACTION") ?? false)
|
||||||
{
|
{
|
||||||
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);
|
step.ExecutionContext.SetGitHubContext("action", step.ExecutionContext.GetFullyQualifiedContextName());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
step.ExecutionContext.SetGitHubContext("action", step.ExecutionContext.GetFullyQualifiedContextName());
|
step.ExecutionContext.SetGitHubContext("action", actionStep.Action.Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user