I’m coming from Jenkins here, and I’m trying to figure out how to replicate this in config.yaml.
In Jenkins I can configure the job to poll only at a specific time:
This results in exactly what I want- it builds only at a given time of day, and ONLY when the branch changes.
I’m still learning config.yaml, but the closest I can get seems to be this:
workflows: version: 2 release: jobs: - buildAndRelease: filters: branches: only: master triggers: - schedule: cron: "0 0 * * *" filters: branches: only: - master
However, this results in a build EVERY midnight, even when there are no changes on that branch.
How can I limit this job/workflow so it only triggers when there are changes on the branch?