Workflow branch ignore still triggered

I’m trying to filter my workflow so that the build_frontend and build_backend jobs do not run when we push to the reports branch. I’ve added a branch filter to each job but it keeps triggering on commit regardless…

workflows:
  version: 2

  plantmap:
    jobs:
      - build_backend:
        filters:
          branches:
            ignore: reports
      - build_frontend:
        filters:
          branches:
            ignore: reports

Our configuration file is here.

Hi @kourbou,

Welcome to the community!

You need to indent your filters one more level: they need to be under the job name, but at the moment they’re at the same level as the job name. Please see the documentation here: https://circleci.com/docs/2.0/configuration-reference/#jobs-1

Happy building!

Regards,
Stig

Ah yes, that would do it. Thanks @stig.

You’re welcome :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.