mirror of
https://github.com/actions/runner.git
synced 2025-12-14 04:53:34 +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)
|
||||
{
|
||||
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
|
||||
// we assume it has a post step
|
||||
if (!_cachedEmbeddedPostSteps.ContainsKey(parentStepId))
|
||||
@@ -282,6 +284,7 @@ namespace GitHub.Runner.Worker
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return state;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user