Add Composite action's outputs as a return node

This commit is contained in:
Alvaro Muñoz
2024-09-24 21:43:10 +02:00
parent 7c2386bbee
commit 4fc9e3f0f1

View File

@@ -96,7 +96,10 @@ class ReturnNode extends ExprNode {
ReturnNode() {
this.asExpr() = outputs and
outputs = any(ReusableWorkflow s).getOutputs()
(
exists(ReusableWorkflow w | w.getOutputs() = outputs) or
exists(CompositeAction a | a.getOutputs() = outputs)
)
}
ReturnKind getKind() { result = TNormalReturn() }