Composite Actions (#1170)

Composite Actions Refactoring
This commit is contained in:
Thomas Boop
2021-07-01 13:34:28 -04:00
committed by GitHub
parent ee34f4842e
commit 7c90b2a929
6 changed files with 347 additions and 1932 deletions

View File

@@ -245,6 +245,12 @@ namespace GitHub.Runner.Worker
public void RegisterPostJobStep(IStep step)
{
// TODO: Remove when we support composite post job steps
if (this.IsEmbedded)
{
throw new Exception("Composite actions do not currently support post steps");
}
if (step is IActionRunner actionRunner && !Root.StepsWithPostRegistered.Add(actionRunner.Action.Id))
{
Trace.Info($"'post' of '{actionRunner.DisplayName}' already push to post step stack.");