A team in Sydney wants a cleanup workflow to start at 02:00 local time every day. The run must stay at 02:00 local time when daylight saving time starts and ends, and the team does not want to edit the workflow twice a year. How should the trigger be configured?
Choose one.
Scheduled workflows run in UTC unless a timezone is set on the schedule entry.
By default the cron expression in a schedule trigger is evaluated in UTC. GitHub lets you add a timezone key with an IANA zone name beside each cron entry, and the schedule then tracks that zone, including daylight saving changes. A fixed UTC conversion drifts by an hour twice a year, an env variable affects only the job's processes, and two cron entries both fire every day.
- Identify the requirement: a local wall-clock time that survives daylight saving changes.
- Recall that cron in a schedule trigger is UTC by default.
- Recall that each schedule entry can carry an IANA timezone.
- Reject options that only change the job environment or duplicate the schedule.
Exam tip: Cron is UTC by default; add timezone: <IANA zone> to follow local time and daylight saving.
GitHub Actions Triggers, Events, Caching, Artifacts and Outputs (GH-200) — the lesson that teaches this.