Hi,
I set up a simple PHP project on GitHub using the git-flow model. Currently, I have only two branches master and develop. I’m frequently pushing to develop and only want develop to be built currently, but the build on CircleCI is not triggered. (I can start a build using the API, though)
Here is my config that is mainly based on the default config, what am I doing wrong?
We’re about to find out. It should in that we have it listed in the Docs. If this works, then perhaps something is wrong with the job-level version and I’ll need to report that internally.
Personally, I also prefer the Workflows version since it’s easier to scale to larger configs in the future.
I’ll look into why the way you were doing it didn’t work but otherwise I’m glad it works for you now.
Update:
FWIW, I tried out a simplified version of your original config. On a branch named 2.0-docker and a branch named develop and it worked as expected. Strange.
If you prefer using your original method over workflows, at this point I’d suggest contacting Support and sharing your original config and example build URLs that didn’t work as expected.
I was going to take a look at workflows sooner or later anyway, so I’m fine with this solution. Will probably extend the config step by step, so again thanks for the support!