mirror of
https://github.com/actions/runner.git
synced 2025-12-14 13:43:33 +00:00
Only execute post for actions that have one
This commit is contained in:
@@ -269,6 +269,8 @@ namespace GitHub.Runner.Worker
|
|||||||
}
|
}
|
||||||
else if (depth > 0)
|
else if (depth > 0)
|
||||||
{
|
{
|
||||||
|
var definition = LoadAction(executionContext, action);
|
||||||
|
if (definition.Data.Execution.HasPost) {
|
||||||
// if we're in a composite action and haven't loaded the local action yet
|
// if we're in a composite action and haven't loaded the local action yet
|
||||||
// we assume it has a post step
|
// we assume it has a post step
|
||||||
if (!_cachedEmbeddedPostSteps.ContainsKey(parentStepId))
|
if (!_cachedEmbeddedPostSteps.ContainsKey(parentStepId))
|
||||||
@@ -282,6 +284,7 @@ namespace GitHub.Runner.Worker
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user