CircleCI Ideas

Allow filters at the workflow level for pr-triggered builds

With a scheduled trigger, it's possible to specify a filter just one for multiple jobs.  With a PR-trigger, there's no place in the config where this might go.

Probably easiest to achieve by adding pr as a trigger type in addition to schedule, and allowing multiple triggers in a block.

e.g.

workflows:
  version: 2.1
  my_flow:
    triggers:
      - schedule:
          cron: "0 0 * * *"
          filters:
            branches:
              only:
                - master
      - pr:
          filters:
            branches:
              only:
                - master
    jobs:
      .
      .
      .
  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Jan 10 2019
  • New
  • Attach files