trigger build once a day
I have a worker set up (with only static assets) connected with a github repo.
How can I trigger the build once a day?
Under triggers I see "Triggers cannot be added to a Worker that only has static assets."
I would prefer to avoid committing to my repo every day to trigger the build.
I'm using the "Cloudflare Workers and Pages" github app integration so I suppose I can't trigger it daily with github actions?
Sidenote: My build pulls in things from multiple github repos, which is why I want it to run daily even though the main website repo did not change.
1 Reply
Triggers are events that invoke your Worker, not events that initiate builds.
As for running builds on a schedule, you might be able to use wrangler-action
GitHub
Deploy to Cloudflare Workers with Wrangler - GitHub Marketplace
Deploy your Cloudflare projects from GitHub using Wrangler