I would like to build a pipeline with two different
main workflows so that conditionally one or the other gets triggered based on the branch name that got merged into main.
Let’s say I merge into main a branch whose name starts with
feat/..., I want
main_1 workflow to trigger
But if I merge a branch into
main whose name starts with
themes/... I want to trigger
How do I do it? Is that possible?
I was checking the pipeline parameter and the closest one I could find was
<< pipeline.git.branch >> but we use it always to simply fire the
main workflow doing
main: when: and: - equal: [main, << pipeline.git.branch >>]
Definitely not what I need!
Hope someone has some answers, thank you.