mirror of
https://github.com/actions/runner.git
synced 2025-12-11 21:06:55 +00:00
Fix an issue where nested local composite actions did not correctly register post steps (#1433)
* Always register post steps for local actions * Register post steps along with their conditions * remove debug code Co-authored-by: Ferenc Hammerl <fhammerl@github.com>
This commit is contained in:
@@ -50,8 +50,9 @@ namespace GitHub.Runner.Worker.Handlers
|
||||
// Only register post steps for steps that actually ran
|
||||
foreach (var step in Data.PostSteps.ToList())
|
||||
{
|
||||
if (ExecutionContext.Root.EmbeddedStepsWithPostRegistered.Contains(step.Id))
|
||||
if (ExecutionContext.Root.EmbeddedStepsWithPostRegistered.ContainsKey(step.Id))
|
||||
{
|
||||
step.Condition = ExecutionContext.Root.EmbeddedStepsWithPostRegistered[step.Id];
|
||||
steps.Add(step);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user