How do you schedule a workflow and what are the caveats?
BeginnerConceptGitHub Actions
Answer
Use on.schedule.cron with standard five-field cron syntax in UTC. Caveats: scheduled runs can be delayed under load (especially at the top of the hour), run only on the default branch, and are automatically disabled in public repositories after 60 days without repo activity.
on:
schedule:
- cron: '17 2 * * *' # daily at 02:17 UTC
More on GitHub Actions
What are workflows, jobs, steps and actions in GitHub Actions?BeginnerWhat events can trigger a workflow?BeginnerWhat is the difference between `pull_request` and `pull_request_target`?AdvancedWhat is a runner, and how do GitHub-hosted and self-hosted runners differ?BeginnerHow do you pass data between steps and between jobs?IntermediateHow does a build matrix work?Intermediate