How to prevent job runs overnight?

We only want to run certain jobs - such as continuous production deployments - during office hours. Is there a way to achieve this out of the box?

Using github-hosted runners or using self-hosted?

For self-hosted, you could just unregister your runners outside of hours.

For github-hosted, no, there isn’t an “out-of-the-box” flag. But you could make an action which generates a thing and submits it somewhere and then have a something that comes along and uses workflow_dispatch to reproduce it during hours if you really wanted to…