cron0 8,20 * * *

GitHub Actions — Twice Daily (8 AM and 8 PM UTC)

At 8 and 20:00

Triggers a GitHub Actions workflow at 8 AM and 8 PM UTC — a twice-daily schedule for morning and evening automated runs, dual-shift deployments, and bi-daily report generation.

Special Patterns2 runs/day

Want to customize this schedule or validate your own cron expression?

Try it live →

Field Breakdown

FieldValueMeaning
minute00
hour8,208 and 20
day*every day of month
month*every month
weekday*every day of week
0
minute
8,20
hour
*
day
*
month
*
weekday

Common Use Cases

  • GitHub Actions twice daily
  • Morning and evening workflow
  • Bi-daily automated report

Code Examples

Bash / crontab
# Run your script on schedule: 0 8,20 * * *
0 8,20 * * * /path/to/your/script.sh
Node.js (node-cron)
import cron from 'node-cron';

cron.schedule('0 8,20 * * *', () => {
  console.log('Running scheduled task');
});
Python (APScheduler)
from apscheduler.schedulers.blocking import BlockingScheduler

scheduler = BlockingScheduler()

@scheduler.scheduled_job('cron', minute='0', hour='8,20')
def my_job():
    print('Running scheduled task')

scheduler.start()

GitHub Actions Workflow

Generate a ready-to-use .github/workflows/schedule.yml file. Customize the name and download directly.

GitHub Actions
# .github/workflows/schedule.yml
name: GitHub Actions — Twice Daily (8 AM and 8 PM UTC)

on:
  schedule:
    - cron: '0 8,20 * * *'
  workflow_dispatch: # allow manual trigger

jobs:
  run:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v4

      - name: Run scheduled task
        run: |
          echo "Running on schedule: 0 8,20 * * *"
          # Add your commands here

Save as .github/workflows/schedule.yml in your repository root

Cron Syntax Quick Reference

FieldAllowed ValuesSpecial Chars
minute0–59* , - /
hour0–23* , - /
day of month1–31* , - /
month1–12 or JAN–DEC* , - /
day of week0–7 or SUN–SAT* , - /

Special characters: *= any value  ,= list  -= range  / = step

Related Patterns — Special Patterns

Need to build your own cron expression from scratch?

Open the Cron Expression Builder →