Add Runner File Commands (#684)

* Add File Runner Commands
This commit is contained in:
Thomas Boop
2020-08-28 15:32:25 -04:00
committed by GitHub
parent d900654c42
commit 9976cb92a0
7 changed files with 165 additions and 0 deletions

View File

@@ -145,6 +145,12 @@ namespace GitHub.Runner.Worker
stepHost = containerStepHost;
}
// Setup File Command Manager
var fileCommandManager = HostContext.CreateService<IFileCommandManager>();
// Container Action Handler will handle the conversion for Container Actions
var container = handlerData.ExecutionType == ActionExecutionType.Container ? null : ExecutionContext.Global.Container;
fileCommandManager.InitializeFiles(ExecutionContext, container);
// Load the inputs.
ExecutionContext.Debug("Loading inputs");
var templateEvaluator = ExecutionContext.ToPipelineTemplateEvaluator();
@@ -239,6 +245,8 @@ namespace GitHub.Runner.Worker
// Run the task.
await handler.RunAsync(Stage);
fileCommandManager.TryProcessFiles(ExecutionContext, ExecutionContext.Global.Container);
}
public bool TryEvaluateDisplayName(DictionaryContextData contextData, IExecutionContext context)