# Scheduling jobs cron style

### Scheduling jobs

* When you are writing the workflow you need to add the following entries to the `on` block:

```yaml
on:
  schedule:
    - cron: '* * * * *'
```

* Example:

```yaml
name: "Example"

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  
  # This section is for the schedule
  schedule:
    - cron: '* * * * *'
```

{% hint style="info" %}
To make life more easy use [Crontab Guru](https://crontab.guru/)
{% endhint %}

### Resources

* [Youtube Link](https://www.youtube.com/watch?v=eJG86J200nM)
* [Airplane Dev Blog](https://www.airplane.dev/blog/scheduling-your-github-actions-cron-style)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/devops/github-actions/scheduling-jobs-cron-style.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
