Scheduling jobs cron style

Scheduling jobs

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

on:
  schedule:
    - cron: '* * * * *'
  • Example:

name: "Example"

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

To make life more easy use Crontab Guru

Resources

Last updated