Workflows triggers and branches

circle.yml

#1

Let’s say I want to have an hourly (later more likely a daily) task:

workflows:
  version: 2
  build:
    jobs:
      - build
  hourly:
    triggers:
      - schedule:
          cron: "0 * * * *"
          filters:
            branches:
              only:
                - develop
    jobs:
      - merge

Do I need to push these changes on a particular branch or any branch is OK to configure scheduled workflows? If I change the cron definition on branch X and push will it overwrite the configuration on CircleCI?

I have a hard time understanding what is the source of truth on when a workflow is scheduled if it can be defined to different values on different branches. I am not sure which config wins in such case…


Trigger workflow by API
#2

I pushed this change on feature/circleci branch and the hourly schedule does not seem to be working…


#3

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