I am migrating to use Workflow Outputs. I have two workflows that live side by side in the same repository and share a lot of things. I was wondering if there’s any way for them to share some definitions in the output{} block. E.g.
No, not really. You might be able to move shared logic from the path closure into a shared function, e.g. if you have some complicated target paths. But I doubt there is enough of that for it to be worth doing
Sharing output definitions? No, it’s just not how the output block works.
If anything, we might add a way to execute a named workflow directly, such that the emits are automatically published without having to write an output block. That would at least save you some ceremony if you don’t need to customize anything. I don’t know if that would help you here or not