Run a GitHub Actions workflow once a year
The GitHub Actions expression for “Once a year” is 0 0 1 1 *. 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 1 1 *Open in tool“At 00:00, on day 1 of the month, only in January”
Workflow file
.github/workflows/yearly.yml
name: yearly
on:
schedule:
- cron: '0 0 1 1 *'
timezone: 'UTC'
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- run: echo "running yearly"GitHub Actions gotchas
5 minutes is the floorGitHub documents every 5 minutes as the shortest interval a scheduled workflow can run. Do not count on anything tighter.
Runs can be late or droppedScheduled runs are delayed at busy times, especially at the start of each hour, and some may be dropped. Avoid minute 0 if timing matters.
UTC unless you set timezoneAdd timezone: with an IANA name to the schedule entry. Without it the schedule runs in UTC.
Default branch only, and it can switch offSchedules run from the latest commit on the default branch. In public repositories they are disabled after 60 days without activity.
FAQ
What is the GitHub Actions cron expression for “Once a year”?
0 0 1 1 *. It reads: At 00:00, on day 1 of the month, only in January
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.