Scheduled (cron) workflow never triggers on a brand-new private repo #201436
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Have you tried renaming the workflow file? This would force Github to treat it as a new workflow and re-register the schedule. another option you could try it just deleting and recreating the workflow into a new commit. Last question: would it be possible to make the repo public, wait a few minutes, and then perform an edit? If you do and then swap the repo back to private it may resolve the issue. |
Beta Was this translation helpful? Give feedback.
-
|
Cron schedules silently not firing on private repos is a well-known GitHub Actions limitation. Here are all the reasons and fixes: Reason 1: Inactive repo suppression (most common)GitHub automatically disables scheduled workflows on repos with no recent activity (typically >60 days). But for brand new repos, the schedule sometimes does not activate until the first manual or push-triggered run. Fix: Run the workflow manually once via on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch: {} # <-- add thisThen go to Actions → your workflow → "Run workflow" button. Reason 2: Default branch mismatchSchedule triggers only work on the default branch (usually Fix: Ensure Reason 3: New repo / new account queue priorityGitHub deprioritizes schedule execution for new repos and new accounts. Initial delays of 12–48 hours are normal. Reason 4: Free plan private repo limitsFree plan: 2,000 Actions minutes/month for private repos. Check Settings → Billing — if you've hit the limit, workflows won't start. Recommended workflow template for reliable scheduling:on:
schedule:
- cron: "0 8 * * *" # 8AM UTC daily
workflow_dispatch: {} # manual trigger as fallback
push:
branches: [main] # also run on push to confirm it worksQuick test: Commit the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Schedule & Cron Jobs
Discussion Details
Repository:
elenrimskaia/marys-garden-blog(private, GitHub Free plan)Workflow:
.github/workflows/telegram-publish.ymlThe workflow has both a
scheduleand aworkflow_dispatchtrigger:The workflow file was added/pushed to the default branch (
main) on 2026-07-09 at 11:06 MSK (08:06 UTC, commit99d9ab5). Since then:workflow_dispatch(manual "Run workflow") has succeeded twice.scheduletrigger has not fired even once, across more than 10 hours and 8+ expected cron matches (07:05/07:15/07:25/07:35 and 15:05/15:15/15:25/15:35 UTC).At 15:15 UTC I pushed a trivial comment-only edit to the workflow file (commit
fdd111c) specifically to try to force GitHub to re-register the schedule trigger, in case it simply hadn't been picked up yet on first add. That did not help either — still zero schedule-triggered runs as of 18:20 UTC (three more expected cron matches passed since that commit).Things I've already ruled out:
Has anyone seen scheduled workflows simply never register on a freshly created private repo like this? Is there a known delay longer than a few hours, or something else I should check?
Beta Was this translation helpful? Give feedback.
All reactions