Scheduled workflow never starts, but manual runs succeed> #214648
Replies: 2 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. ⭐ |
|
Nothing wrong with your setup as far as I can see. I checked the repo: news.yml is on main, the workflow state is active in the API, and This looks like GitHub's scheduler, not your repo. There's a pile of identical threads from the last two days (#214540, #214650, #214635, #214639). In #214540 the public repo has two scheduled workflows, one of them a Until it's fixed, the workaround is to trigger it from outside with workflow-dispatch, which clearly works for you. I use Cloudflare Workers cron triggers for this kind of thing: // src/index.js
export default {
async scheduled(controller, env, ctx) {
const res = await fetch(
'https://api.github.com/repos/kirillnorris/newsformeonly-telegram-bot/actions/workflows/news.yml/dispatches',
{
method: 'POST',
headers: {
Authorization: `Bearer ${env.GH_TOKEN}`,
Accept: 'application/vnd.github+json',
'User-Agent': 'news-cron',
},
body: JSON.stringify({ ref: 'main' }),
},
)
if (!res.ok) throw new Error(`dispatch failed: ${res.status} ${await res.text()}`)
},
}// wrangler.jsonc
{
"name": "news-cron",
"main": "src/index.js",
"compatibility_date": "2026-12-01",
"triggers": { "crons": ["17,47 * * * *"] }
}Then Token: a fine-grained PAT limited to this repo with Actions: Read and write is enough for the dispatches endpoint. Keep the User-Agent header, GitHub's API requires one and Workers fetch doesn't add it for you. Cron triggers run in UTC, same as Actions. The person who opened #214540 did the same thing and it works for them. Once schedule events come back you can drop the Worker, or drop the schedule block now if you don't want double runs later. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
ARC (Actions Runner Controller)
Discussion Details
My public repository is https://github.com/kirillnorris/newsformeonly-telegram-bot. The Telegram news workflow is active, and .github/workflows/news.yml is on the default branch (main). Five manual runs completed successfully, but the Actions history shows zero runs triggered by schedule. I changed the cron expression to 17,47 * * * *, and the issue persisted. Is there anything else I can check to find out why GitHub isn’t triggering this workflow?
All reactions