Cronjobs on Github with Github Actions

note, May 27, 2023, on Mitja Felicijan's blog

In the root of your repository create a folder .github/workflows and in that folder create a file a file cron.yaml. This file can be named whatever you wish. But it has to be a yaml file.

File below (.github/workflows/cron.yaml) describes an action that will trigger every six hours and it will curl

However. Be sure that you have enough credits. Free account is not that generous with the minutes they give you for free. Check more about GitHub Actions usage on their website

# .github/workflows/cron.yaml
name: Do a curl every 6 hours
    - cron: '0 */6 * * *'
    runs-on: ubuntu-latest
      - name: Call some url
        run: curl ''

Other notes