Replies: 3 comments 1 reply
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
GitHub Actions cron schedules are strictly evaluated against UTC. The runner scheduler itself has no concept of localized timezones or regional defaults. The perception that a workflow is running on US/Pacific time instead of UTC is almost always caused by one of two factors: 1. The GitHub Actions Web UI Displays Local Browser TimeWhen viewing workflow run history on
2. Schedule Queue Delay WindowGitHub Actions scheduled workflows do not guarantee execution at the exact minute specified. During peak traffic hours (particularly at the start of the hour How to Verify the Exact Execution Time:To confirm the true UTC execution timestamp and registered schedule, add this debugging step to your workflow: jobs:
verify-time:
runs-on: ubuntu-latest
steps:
- name: Inspect Schedule Execution Time
run: |
echo "System Local Time: $(date)"
echo "System UTC Time: $(date -u)"
echo "Cron Expression: ${{ github.event.schedule }}"The output will confirm that |
|
I looked at the scheduled runs of
The Nov 17 run settles it. 18:03 Pacific is 02:03 UTC, and the run was created at 00:43 UTC, before that. Scheduled runs are never created early, so that schedule was evaluated in UTC and then delayed by 6h40m. The Nov 24 run then happened to be delayed by about 8 hours, which is close to the UTC–Pacific offset. That made it look like a Pacific schedule. Delays of 6 to 9 hours on The docs now also document an optional on:
schedule:
- cron: '13 18 * * 2'
timezone: "Etc/UTC"That won't fix the delay itself. If the release has to go out within minutes of 18:13, the reliable option is an external trigger. For example, call |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Schedule & Cron Jobs
Discussion Details
According to the documentation the schedule hour is supposed to be UTC. The schedule is reliably starting at that hour in the US/Pacific timezone instead.
Fix the scheduling or the documentation to match reality!
All reactions