GitHub Actions scheduled workflow never triggers — manual runs work #212356
Replies: 2 comments 1 reply
|
💬 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. ⭐ |
|
Thanks for providing such detailed troubleshooting information. A few additional checks may help isolate whether this is a scheduler issue or a workflow configuration issue. 1. Check the schedule configuration on the default branch Make sure the workflow file exists at:
on the repository's default branch ( 2. Check the cron timing Your current expression: schedule:
- cron: "37 * * * *"is valid and should run at minute 37 of every hour in UTC. As a diagnostic, consider testing a less busy minute, for example: schedule:
- cron: "23 * * * *"This is not a guaranteed fix, but avoids relying on the top of the hour. 3. Check repository activity GitHub automatically disables scheduled workflows in public repositories after 60 days without repository activity. This specific inactivity rule does not apply in the same way to private repositories, but checking whether the workflow remains enabled is still useful. 4. Check Actions settings Go to: Settings → Actions → General Verify that Actions are permitted and that the repository's policies allow the workflow to run. 5. Check workflow registration After committing a schedule change to the default branch, allow time for GitHub to register and execute it. Check the workflow's run history using: gh run list \
--repo umitguldenezku/oracle-hermes-automation \
--event schedule \
--limit 20If no scheduled runs appear after several expected execution windows, despite the workflow being active and correctly configured, this may require investigation by GitHub Support. Since manual dispatch works and no schedule-triggered runs are created, I would focus on scheduler registration and event delivery rather than the Oracle Cloud API calls. Hope this helps! |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Schedule & Cron Jobs
Discussion Details
Problem: Scheduled GitHub Actions workflow never triggers, but manual execution works
Hello GitHub Community,
I am experiencing an issue with GitHub Actions scheduled workflows in my private repository.
Repository:
umitguldenezku/oracle-hermes-automationWorkflow:
.github/workflows/oracle-capacity.ymlDefault branch:
main1. Problem description
The workflow executes successfully when triggered manually using
workflow_dispatch, but it has never started automatically through thescheduleevent.The workflow configuration is:
The cron expression was previously set to
17 * * * *, but that did not work either.The expected behavior is for GitHub Actions to start the workflow once per hour.
The actual behavior is that no scheduled workflow run is created at all.
2. Checks performed
I installed GitHub CLI and verified the workflow state:
Result:
I then checked the scheduled runs:
Result:
I also checked recent workflow executions:
Run ID | Trigger | Result -- | -- | -- 42371632627 | workflow_dispatch | success 42371133638 | workflow_dispatch | failure 42370625257 | workflow_dispatch | successAll recorded executions were manually triggered.
3. Troubleshooting already attempted
Confirmed the workflow is active.
Confirmed the YAML file exists on the default
mainbranch.Confirmed manual execution works.
Changed the cron expression and committed the change to
main.Verified the workflow status and run history using GitHub CLI.
Checked for scheduled executions, but none exist.
The workflow uses an Ubuntu GitHub-hosted runner. It calls Oracle Cloud APIs, but the scheduled trigger does not even create a workflow run, so Oracle is not involved in the scheduling failure.
4. Questions
Is there a known GitHub Actions scheduler registration or event delivery issue affecting private repositories?
Is there an additional setting required to enable scheduled workflows?
How can I verify whether GitHub has registered the cron trigger correctly?
Is there a way to force GitHub to re-register this workflow's schedule?
Any guidance would be appreciated.
Thank you!
All reactions