I have a really annoying issue with my config file, in my project config it’s set to only run on pull requests, and I would also like to restrict it so that it will only run on release branches.
In the end, CI should only run on pull requests with the base branch being release/*, no matter the target.
I have the following config and for some reason, the CI is running on every push of every branch that has a pull request attached/open.
Answering my own question, thanks to Nick Bialostosky from CircleCI support I was able to fix this. If anyone encounters the same issue here is his recommendation :
As for the current issue you are encountering, I actually think it may be from passing the filters key in. Since you are using version 2 and applying the branch filter at the job level it will need to be formatted like this: