GitHub Actions scheduled workflow not running: causes and fixes

Why a GitHub Actions cron schedule never fires, runs late or stops after a while: default branch, UTC, 60-day inactivity, load delays. And how to alert when it misses.

· 7 min read · By the Spot Downtime team

You added a schedule trigger to a workflow, pushed it, and nothing happens. Or it ran for a while and then quietly stopped. Scheduled workflows in GitHub Actions have several rules that don't apply to normal triggers, and most "it never runs" cases come down to one of them.

This post goes through the causes in the order worth checking them, then shows how to get an alert when a scheduled run goes missing, because GitHub will not send you one.

A correct schedule trigger

yaml
name: nightly-sync
on:
  schedule:
    - cron: "30 2 * * *"   # 02:30 UTC every day
  workflow_dispatch: {}      # lets you run it by hand

jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: ./scripts/sync.sh

Adding workflow_dispatch is worth doing for every scheduled workflow. It gives you a Run workflow button, so you can test the job itself without waiting for the next tick.

1. The workflow file isn't on the default branch

Scheduled workflows run only from the workflow file on the repository's default branch, and use the code at the latest commit of that branch. If you added the schedule block on a feature branch, it will never fire until that change is merged. Pushing a new schedule to another branch is the most common reason a new schedule "doesn't work".

2. The time is in UTC, not yours

The cron expression is evaluated in UTC. 0 9 * * * means 09:00 UTC, which is a different hour in most of the world and changes relative to local time when daylight saving starts or ends. If the job "ran at the wrong time", it probably ran exactly when you told it to. Convert deliberately, and see cron timezone and DST pitfalls. The cron expression tool shows the next run times for an expression.

3. The schedule is too frequent

The shortest interval GitHub supports is every 5 minutes. An expression like * * * * * won't run every minute. Don't rely on a schedule for anything that needs minute-level precision.

4. Runs are delayed or skipped under load

Schedule events can be delayed when GitHub's runner queue is busy, and the load is highest at the start of every hour. A job set to 0 * * * * often starts several minutes late, and during heavy load a run can be dropped altogether. Two practical changes help:

  • Pick an off-peak minute such as 17 * * * * or 43 2 * * * instead of 0 or 30.
  • Make the job tolerant of lateness. Process "everything since the last successful run" instead of "the last hour", so a delayed or missed run is corrected by the next one.

5. The schedule was disabled after 60 days of inactivity

In public repositories, GitHub automatically disables scheduled workflows after 60 days with no repository activity. A quiet project, a mirror or a nightly job in an otherwise finished repo is the typical victim. The workflow shows as disabled on the Actions tab, and you re-enable it there. Any new commit resets the timer, but don't rely on that for something that matters. If the job is important, move it somewhere that doesn't expire or keep a heartbeat alert on it, as described below.

6. The workflow was disabled for another reason

  • Manually disabled. Open the Actions tab, pick the workflow in the sidebar and check for a banner saying it is disabled.
  • Forks. Workflows in a forked repository don't run on a schedule until you enable them in the Actions tab of the fork.
  • Actions turned off. Repository or organisation settings, or a policy restricting which actions may run, can stop the workflow. Check Settings, then Actions.
  • Account changes. A schedule event is attributed to the user who last changed the cron expression. If that account loses access to the repository, scheduled runs can stop. Have a current maintainer touch the schedule line.
  • Billing or quota. Private repositories use the included minutes of the plan. When the limit is reached and spending is capped, jobs don't start.

7. The YAML is valid, but the cron isn't what you think

GitHub uses the standard five-field POSIX syntax: minute, hour, day of month, month, day of week. Quote the expression, since* at the start of a YAML value is a syntax problem. Two classic traps:

  • Using both day-of-month and day-of-week (0 9 1 * 1) matches when either field matches, not both. That is how cron works, and it surprises people.
  • Extensions from other cron implementations, such as @daily, six-field expressions with seconds, or ?, are not supported.

A workflow file with a YAML error doesn't run at all. The Actions tab usually shows the file with an error annotation, so look there before anything else.

When it runs but fails silently

A scheduled run that starts and then fails sends a notification to the person who last edited the cron, and only if their notification settings allow it. Many teams never see these. If the job only matters when it succeeds, you need your own signal. This is the same problem as cron jobs that fail silently on a server.

Get alerted when a scheduled run doesn't happen

A heartbeat monitor inverts the problem. Instead of watching for errors, the job reports in each time it succeeds, and you get an alert when the report doesn't arrive. That covers every cause above at once: an unmerged schedule, a disabled workflow, a dropped run, and a job that failed halfway.

Store the heartbeat URL as a repository secret named HEARTBEAT_URL and add a last step that reports success, plus a step that reports failure explicitly:

yaml
jobs:
  sync:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: ./scripts/sync.sh
      - name: Report success
        run: curl -fsS -m 10 --retry 3 "${{ secrets.HEARTBEAT_URL }}"
      - name: Report failure
        if: failure()
        run: curl -fsS -m 10 "${{ secrets.HEARTBEAT_URL }}/fail"

Set the expected interval to the schedule (one day for a nightly job) and a grace period of 30 to 60 minutes, which covers the normal start-up delays described above. See how to choose the interval and grace period, and how to set up a heartbeat monitor for the ping and /fail URLs in Spot Downtime. The cron job monitoring page lists what it supports.

Quick checklist

Is the schedule block on the default branch? Is the time in UTC? Does the Actions tab show the workflow as enabled? Has the repository been inactive for 60 days? Is the YAML valid? Try Run workflow with workflow_dispatch to separate a problem with the job from a problem with the schedule.

Get new guides by email

Practical posts on monitoring, outages, error fixes and on-call, when they're published. No spam.

Unsubscribe from any email with one click. See our privacy policy.

Keep reading