Schedule Syntax
This reference documents the schedule syntax: fuzzy schedules (recommended), time constraints, and standard cron expressions.
Overview
Section titled “Overview”Schedule expressions convert to cron format. There are two types:
- Fuzzy schedules (recommended) scatter execution times across workflows to prevent load spikes. Each workflow’s time is based on its file path and does not change across recompiles.
- Fixed schedules run at specific times. Many workflows that share a fixed time create server load.
Quick Reference
Section titled “Quick Reference”| Pattern | Example | Result | Type |
|---|---|---|---|
| Daily | daily | Scattered time | Fuzzy |
daily on weekdays | Mon-Fri, scattered time | Fuzzy | |
daily around 14:00 | 13:00-15:00 window | Fuzzy | |
daily around 9am on weekdays | Mon-Fri 8am-10am | Fuzzy | |
daily between 9:00 and 17:00 | 9am-5pm window | Fuzzy | |
daily between 9:00 and 17:00 on weekdays | Mon-Fri 9am-5pm | Fuzzy | |
| Hourly | hourly | Scattered minute | Fuzzy |
hourly on weekdays | Mon-Fri, scattered minute | Fuzzy | |
every 2h | Every 2 hours | Fuzzy | |
every 2h on weekdays | Mon-Fri every 2 hours | Fuzzy | |
| Weekly | weekly | Scattered day/time | Fuzzy |
weekly on monday | Monday, scattered time | Fuzzy | |
weekly on friday around 5pm | Friday 4pm-6pm | Fuzzy | |
| Bi-weekly | bi-weekly | Scattered across 2 weeks | Fuzzy |
| Tri-weekly | tri-weekly | Scattered across 3 weeks | Fuzzy |
| Intervals | every 10 minutes | Every 10 minutes, scattered start minute | Fuzzy |
every 2 days | Every 2 days, scattered time | Fuzzy | |
every 2w, every 1mo | Scattered time (and day of month) | Fuzzy | |
| Cron | 0 9 * * 1 | Standard cron | Fixed |
Fuzzy Schedules
Section titled “Fuzzy Schedules”Daily Schedules
Section titled “Daily Schedules”daily runs once per day at a scattered time, for example 43 5 * * * (5:43 AM UTC). daily on weekdays restricts runs to Monday-Friday, for example 43 5 * * 1-5.
Use around for a ±1 hour window or between for a custom range:
schedule: daily around 14:00 # 13:00-15:00schedule: daily around 3pm # 2pm-4pmschedule: daily around noon # 11am-1pmschedule: daily around 9am on weekdays # Mon-Fri 8am-10amschedule: daily between 9:00 and 17:00 on weekdays # Mon-Fri 9am-5pmschedule: daily between 22:00 and 02:00 # Crosses midnight (10pm-2am)Hourly Schedules
Section titled “Hourly Schedules”schedule: hourly # Scattered minute, e.g., 58 */1 * * *schedule: hourly on weekdays # Mon-Fri only, e.g., 58 */1 * * 1-5Each workflow gets a consistent minute offset (0-59).
Interval Schedules
Section titled “Interval Schedules”Use every N [unit] for intervals. Day, week, and month intervals use the same scattered time slots as daily.
# Minutes (minimum 5 minutes, scattered start minute)schedule: every 5 minutes # 3/5 * * * *schedule: every 10m # 7/10 * * * * (short format)
# Hours (scattered minute)schedule: every 1h # 58 */1 * * *schedule: every 2 hours # 53 */2 * * *schedule: every 2h on weekdays # Mon-Fri every 2 hours (e.g., 53 */2 * * 1-5)
# Days (scattered time)schedule: every 1d # 43 5 * * * (same as daily)schedule: every 2 days # 43 5 */2 * *
# Weeks (scattered time)schedule: every 1w # 43 5 * * 1 (same as weekly)schedule: every 2w # 43 5 */14 * *
# Months (scattered day 1-28 and time)schedule: every 1mo # 43 5 17 * *schedule: every 2mo # 43 5 17 */2 *Valid minute intervals: 5m, 10m, 15m, 20m, 30m. Valid hour intervals: 1h, 2h, 3h, 4h, 6h, 8h, 12h.
For an exact time, use a cron expression such as cron: "0 0 */2 * *".
The crons above are illustrative: actual times, weekdays, and monthly dates depend on the workflow identifier. Weeks and months require the short forms (every 2w, every 2mo), not every 2 weeks or every 2 months.
Recompiling existing workflows changes their schedule once. In particular, every 1w moves from Sunday to a hashed weekday, and every 1mo moves from the first of the month to a hashed day in 1–28. To preserve those calendar dates, use weekly on sunday or an explicit cron such as cron: "0 0 1 * *".
Weekly Schedules
Section titled “Weekly Schedules”schedule: weekly # Scattered day/time (e.g., 43 5 * * 1)schedule: weekly on monday # Monday at scattered timeschedule: weekly on monday around 09:00 # Monday 8am-10amschedule: weekly on friday around 5pm # Friday 4pm-6pmSupported weekdays: sunday through saturday.
Bi-weekly and Tri-weekly Schedules
Section titled “Bi-weekly and Tri-weekly Schedules”schedule: bi-weekly # Every 14 days at scattered time (e.g., 43 5 */14 * *)schedule: tri-weekly # Every 21 days at scattered time (e.g., 18 14 */21 * *)The time repeats every 14 or 21 days, scattered across the full period to distribute load.
IANA Timezone Field
Section titled “IANA Timezone Field”For cron-based schedule items, use the optional timezone field to interpret the cron expression in a specific timezone rather than UTC:
on: schedule: - cron: "30 9 * * 1-5" timezone: "America/New_York" # 9:30 AM EST/EDT Mon-Fri - cron: "0 14 * * *" timezone: "Asia/Tokyo" # 2:00 PM JST daily - cron: "0 8 * * 1" timezone: "Europe/London" # 8:00 AM GMT/BST on MondaysThe field accepts any IANA timezone identifier (e.g., America/New_York, UTC). The compiler converts the cron expression to UTC using the specified timezone rules, including daylight saving time.
UTC Offset and Time Formats
Section titled “UTC Offset and Time Formats”Use utc+N, utc-N, or utc+HH:MM to convert local times to UTC:
schedule: daily around 14:00 utc+9 # 2:00 PM JSTschedule: daily around 9am utc-5 # 9:00 AM ESTschedule: daily between 9am utc-5 and 5pm utc-5 # Business hours ESTschedule: weekly on monday around 08:00 utc+05:30 # Monday 8:00 AM ISTTimes accept 24-hour (09:30), 12-hour (3pm, 11am), and keyword (midnight = 00:00, noon = 12:00) formats.
Common offsets: PT/PST/PDT (utc-8/utc-7), EST/EDT (utc-5/utc-4), JST (utc+9), IST (utc+05:30).
Fixed Schedules
Section titled “Fixed Schedules”For fixed times, use standard cron syntax. The format is minute hour day-of-month month day-of-week.
on: schedule: - cron: "0 2 * * *" # Daily at 2:00 AM UTC - cron: "30 6 * * 1" # Monday at 6:30 AM UTC - cron: "0 9 15 * *" # 15th of month at 9:00 AM UTC - cron: "*/15 * * * *" # Every 15 minutes - cron: "0 14 * * 1-5" # Weekdays at 2:00 PM UTCMultiple Schedules
Section titled “Multiple Schedules”on: schedule: - cron: daily - cron: weekly on monday - cron: "0 0 15 * *" # Monthly on 15thShorthand Format
Section titled “Shorthand Format”on: daily expands to a scattered daily schedule plus workflow_dispatch:
on: daily
# Expands to:on: schedule: - cron: "FUZZY:DAILY * * *" workflow_dispatch:Validation & Warnings
Section titled “Validation & Warnings”The compiler warns about patterns that create load spikes:
! Schedule uses fixed daily time (0:0 UTC). Consider using fuzzy schedule 'daily' instead to distribute workflow execution times.
! Schedule uses hourly interval with fixed minute offset (0). Consider using fuzzy schedule 'every 2h' instead.
! Schedule uses fixed weekly time (Monday 6:30 UTC). Consider using fuzzy schedule 'weekly on monday' instead.Learn More
Section titled “Learn More”- Triggers - Complete trigger configuration
- Frontmatter - Workflow configuration reference
- GitHub Actions Schedule Events - GitHub’s schedule documentation