Yes, you can depend on multiple upstream values.
It’ll turn self
into an array.
The “item is invalid because it is not a dict” error means infile
is a file and not an array, so you don’t want to wrap it in [ ]
.
Try this:
infile:
source: [listdir/a, xyz/x]
valueFrom: |
${
if (inputs.num === 0) {
return self[0];
}
else { return self[1]; }
}