When using the path filtering orb to run workflows, I’m looking for a better method of manually triggering a workflow. As an example, let’s say I have this setup:
When wanting to manually trigger a setup workflow via the API or the “trigger pipeline” button on the dashboard, you will need to add additional pipeline parameters to pass in.
I was not able to get a good working example using just the path-filtering/filter job, but I was able to get it to work by using the underlying continuation/continue job from the continuation orb. Here are the two sample .yml files:
Essentially I added two pipeline parameters, one for each workflow you would like to manually execute.
When using the api or the trigger pipeline button, you can pass in true or false (default false) to fire one or multiple workflows.
The path filtering workflow will only run when neither manual-workflow-a nor manual-workflow-b is true.
If you would like further clarification on anything, please feel free to ask. I hope the above example can serve as a reference for your use case.