Interview Prep/CI/CD/GitHub Actions

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
All CI/CD questions

More on GitHub Actions