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_SHAat 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.
More on Triggers & Events
How do you trigger a workflow on pushes to `main` and on PRs that target `main`?BeginnerWhat activity types does `pull_request` trigger on by default, and how do you add more?IntermediateHow do `branches` and `branches-ignore` filters work with globs?BeginnerHow do path filters work, and what are their limits?AdvancedHow do you trigger only on version tags, and what is the gotcha with pushing many tags?IntermediateWhat is `workflow_dispatch`, and what input types does it support?Beginner