GitHub Actions can be triggered to run on a schedule using cron syntax. In this video we go over what that means and how to write cron syntax. We also show a tool and a series of examples to aid in writing and debugging cron.
What sort of action would be most appropriate for running on a schedule like this?
Anything that you want to run on an interval that doesn't have a pre-existing event. For example, if you can run your action on push
, then you shouldn't be scheduling it. Here's a couple examples of interesting schedulable actions:
Wow, I had to provision a server only for running crons on GitHub since Actions didn't have that. And I didn't get to know when they introduced it. This will save me so much time and money. Thank you! 👌
Once a week, scan activity on the repo and send an email with a digest of the merged PRs or release notes
Do you have this one handy? Would love to check it out.