I want to run build-test-and-push when working on a some-branch branch and run build-and-test on every other branch. What this actually results in is that both jobs are scheduled and run when being on a some-branch branch. Is there something wrong with my workflow config? I’m using version 2.1.
The situation you described is possible and the workflow you provided is close to the setup needed to accomplish it – I think you just had some spacing issues. I believe the filters line under your build-and-test needs to be indented for this to work.
When I tested with the following it worked as you described: