CircleCI Ideas

Add the ability to skip a scheduled workflow with a branch filter if no new changes have been pushed to the branch since the last scheduled workflow was run

I have a nightly workflow set up like this:

nightly:
triggers:
- schedule:
cron: "0 0 * * *"
filters:
branches:
only: develop
jobs:
- nightly-build

 

Sometimes no new changes are pushed to develop over the course of a day. In this case the result of the nightly build should be the same as the night before, so I would like to skip the nightly workflow and save some build minutes. I have currently implemented this behavior by adding a cache step to the nightly build job, but it would be nice if there was a more concise way to do it.

  • Avatar32.5fb70cce7410889e661286fd7f1897de Guest
  • Nov 7 2019
  • New
  • Attach files