Interview Prep/GitHub Actions/Triggers & Events

How does the `schedule` trigger work, and what are its quirks?

IntermediateConceptTriggers & Events
Answer
on:
  schedule:
    - cron: "17 3 * * 1-5"   # 03:17 UTC Monday to Friday
  • POSIX cron evaluated in UTC, so 09:00 IST is 30 3 * * *.
  • Runs only from the default branch's workflow file, with GITHUB_SHA at the default branch tip.
  • The shortest interval is every 5 minutes, and runs are best-effort: delayed or dropped at peak times, especially at the top of the hour. Use odd minutes.
  • In public repos, schedules are disabled automatically after 60 days without repository activity.
All GitHub Actions questions Roadmap: GitHub Actions

More on Triggers & Events