fix(workflow): both parallel and single branch errors occur in if-else (#8378)

This commit is contained in:
takatost 2024-09-13 19:55:54 +08:00 committed by GitHub
parent 9d80d7def7
commit cd3eaed335
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -405,7 +405,8 @@ class Graph(BaseModel):
if condition_edge_mappings:
for condition_hash, graph_edges in condition_edge_mappings.items():
current_parallel = cls._get_current_parallel(
for graph_edge in graph_edges:
current_parallel: GraphParallel | None = cls._get_current_parallel(
parallel_mapping=parallel_mapping,
graph_edge=graph_edge,
parallel=condition_parallels.get(condition_hash),