Run a GitHub Actions workflow every Sunday at midnight
The GitHub Actions expression for “Every Sunday at midnight” is 0 0 * * 0. Below: config you can paste, the next run times, and what to watch out for. GitHub Actions takes POSIX cron in on.schedule and runs it on the default branch, in UTC unless the entry sets a time zone.
0 0 * * 0Open in tool“At 00:00, only on Sunday”
Runs late on GitHub? Start it on the minute →
Workflow file
name: every-sunday-midnight
on:
schedule:
- cron: '0 0 * * 0'
timezone: 'UTC'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- run: echo "running every-sunday-midnight"GitHub Actions gotchas
FAQ
What is the GitHub Actions cron expression for “Every Sunday at midnight”?
0 0 * * 0. It reads: At 00:00, only on Sunday
Which time zone does a GitHub Actions schedule use?
In UTC by default. Add timezone: with an IANA name, such as Asia/Tokyo, next to cron: in the schedule entry.
Can GitHub Actions run every minute?
No. The documented minimum is every 5 minutes. For tighter intervals, trigger the workflow from outside with workflow_dispatch or repository_dispatch.
Does GitHub Actions support @hourly or @daily?
No. GitHub does not support @yearly, @monthly, @weekly, @daily, @hourly or @reboot. Use the five fields.