Compare commits

..
Author SHA1 Message Date
Ethan Chiu 0e0ab644db Fix GITHUB_ACTION not being set
Code Scanning - Action / CodeQL-Build (push) Has been cancelled
2020-08-03 20:31:54 -04:00
@@ -68,13 +68,9 @@ 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; compositeGitHubContext[pair.Key] = pair.Value.Clone();
} }
// Download all data
var actionManager = HostContext.GetService<IActionManager>();
await actionManager.PrepareActionsAsync(ExecutionContext, actionSteps);
foreach (Pipelines.ActionStep actionStep in actionSteps) foreach (Pipelines.ActionStep actionStep in actionSteps)
{ {
var actionRunner = HostContext.CreateService<IActionRunner>(); var actionRunner = HostContext.CreateService<IActionRunner>();
@@ -162,7 +158,6 @@ namespace GitHub.Runner.Worker.Handlers
{ {
ArgUtil.NotNull(compositeSteps, nameof(compositeSteps)); ArgUtil.NotNull(compositeSteps, nameof(compositeSteps));
// The parent StepsRunner of the whole Composite Action Step handles the cancellation stuff already. // The parent StepsRunner of the whole Composite Action Step handles the cancellation stuff already.
foreach (IStep step in compositeSteps) foreach (IStep step in compositeSteps)
{ {