0 12 * * 1)
Demystify DevOps with a GitHub Actions Cron Schedule Expression Explainer
Use our free tool, the github actions cron schedule expression explainer, to instantly translate complex CRON syntax into human-readable schedules for your CI/CD workflows. If you are a software developer, DevOps engineer, or a system administrator, you likely rely on automated pipelines to build, test, and deploy your code. GitHub Actions allows you to trigger these workflows automatically on a specific schedule using the schedule event triggered by standard POSIX cron syntax. However, remembering exactly which asterisk stands for the day of the week versus the month can be incredibly confusing and prone to errors.
A single misplaced number or asterisk in your YAML configuration file could cause your heavy integration tests to run every minute instead of once a day, eating through your GitHub Actions minute quota and resulting in unexpected billing charges. Our tool acts as a real-time translator, breaking down your five-part cron expression into an easy-to-understand list that clearly identifies when your pipeline will execute.
The Anatomy of a GitHub Actions Cron Expression
A standard cron expression consists of five fields separated by spaces. GitHub Actions evaluates these expressions based on Coordinated Universal Time (UTC). To prevent mistakes in your YAML files, you need to understand what each field represents from left to right:
• Minute (0 – 59): The first field dictates the exact minute the workflow triggers. For example, a 30 means it triggers at half past the hour.
• Hour (0 – 23): The second field sets the hour. Remember, this is in UTC. If you want a job to run at 8:00 AM EST, you must convert that to UTC (which would be 13:00 or 12:00 depending on Daylight Saving Time) and put 13 in this field.
• Day of the Month (1 – 31): The third field specifies the day. An asterisk * means “every day”.
• Month (1 – 12): The fourth field specifies the month of the year.
• Day of the Week (0 – 6): The fifth field defines the day of the week, where 0 represents Sunday and 6 represents Saturday. (e.g., 1-5 means Monday through Friday).
Advanced Cron Syntax Modifiers
While an asterisk (*) simply means “every”, cron supports special characters for more complex scheduling. Our github actions cron schedule expression explainer accurately parses these advanced modifiers:
The Step Operator (/) is used for intervals. For example, */15 in the minute field means “every 15 minutes.” However, GitHub Actions has a hard limitation: the shortest interval you can run a scheduled workflow is once every 5 minutes. Using * * * * * (every minute) will actually default to running every 5 minutes.
The Range Operator (-) specifies a range of values. Using 9-17 in the hour field restricts the workflow to run only between 9 AM and 5 PM UTC.
The List Operator (,) allows you to specify a list of specific values. For instance, 1,15 in the Day of the Month field means the workflow will run exclusively on the 1st and the 15th of the month.
Frequently Asked Questions (FAQ)
GitHub Actions schedules are strictly based on UTC (Coordinated Universal Time). You cannot change this timezone in your workflow file. You must manually calculate the offset from your local timezone when writing the cron expression.
The shortest permitted interval in GitHub Actions is 5 minutes. If you specify a cron expression like * * * * * (every minute), GitHub will throttle it and only execute the workflow once every 5 minutes.
Yes, standard POSIX cron allows the use of three-letter abbreviations for days of the week (SUN, MON, TUE) and months (JAN, FEB, MAR). Our explainer tool recognizes and translates these correctly.
GitHub Actions scheduled workflows do not guarantee exact execution times. During periods of high load on GitHub’s servers, scheduled jobs may be delayed by several minutes. If your task requires exact to-the-second precision, GitHub Actions schedules may not be suitable.