From abfc04c58a15ac57ca55e718cbf481438f3ae06d Mon Sep 17 00:00:00 2001 From: Ethan Chiu Date: Tue, 11 Aug 2020 16:31:15 -0400 Subject: [PATCH] Download action repos into directory --- src/Runner.Worker/Handlers/CompositeActionHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Runner.Worker/Handlers/CompositeActionHandler.cs b/src/Runner.Worker/Handlers/CompositeActionHandler.cs index 97ff85982..0bdda842c 100644 --- a/src/Runner.Worker/Handlers/CompositeActionHandler.cs +++ b/src/Runner.Worker/Handlers/CompositeActionHandler.cs @@ -71,6 +71,10 @@ namespace GitHub.Runner.Worker.Handlers compositeGitHubContext[pair.Key] = pair.Value; } + // Download all data + var actionManager = HostContext.GetService(); + await actionManager.PrepareActionsAsync(ExecutionContext, actionSteps); + foreach (Pipelines.ActionStep actionStep in actionSteps) { var actionRunner = HostContext.CreateService(); @@ -158,6 +162,7 @@ namespace GitHub.Runner.Worker.Handlers { ArgUtil.NotNull(compositeSteps, nameof(compositeSteps)); + // The parent StepsRunner of the whole Composite Action Step handles the cancellation stuff already. foreach (IStep step in compositeSteps) {