Multiple schedules for workflow

Hi folks,

Is it possible to provide multiple different cron strings to the schedule trigger, for schedules that cannot be expressed in a single cron string?

E.g. I’d like the build to run every 30 minutes throughout the day: */30 * * * *, but I’d also like it to run at some specific times around 5pm in addition to every 30 minutes: 5,10,15,20,25 17 * * *.

TIA.

Yeah, you should be able to list multiple schedules for the same workflow

on:
  schedule:
    - cron: 0 4-6 * * *
    - cron: 2,10 4,5 * * *

You can even if depending on which one triggered the workflow by looking at the github.event.schedule variable if you need to:

1 Like

I’ve added this to the workflow, but it seems GitHub is incredibly reluctant to actually run the workflow:

This change was made at 15:57 UTC, so I would’ve expected the following runs to happen:

  • 16:00
  • 16:30
  • 17:00
  • 17:05
  • 17:10
  • 17:15
  • 17:20
  • 17:25
  • 17:30
  • 18:00

Of those, the only runs that have happened were the 16:30 & 18:00 runs…?