Skip to content

Commit e5c0c26

Browse files
clarmsoclaude
andcommitted
MTE-6112 Pin the canary rebase to 07:00 America/New_York year-round
GitHub cron is UTC-only, so a single '0 11 * * *' entry meant 07:00 local during EDT but 06:00 during EST. Now fires at both 11:00 and 12:00 UTC with a guard step that stops the run unless the America/New_York hour is 07, so the job lands at 07:00 local regardless of DST. Manual dispatch bypasses the guard. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent f92963d commit e5c0c26

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.github/workflows/xcode27-canary-rebase.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ name: Rebase Xcode 27 canary branch onto main
1313

1414
on:
1515
schedule:
16-
# 11:00 UTC = 07:00 America/New_York while EDT is in effect (06:00 during EST;
17-
# GitHub cron has no timezone support, so the local hour shifts with DST).
18-
- cron: '0 11 * * *'
16+
# GitHub cron is UTC-only, so fire at both candidate hours and let the job's
17+
# timezone guard drop the wrong one. That pins the run to 07:00
18+
# America/New_York year-round instead of drifting an hour with DST.
19+
- cron: '0 11 * * *' # 07:00 America/New_York during EDT
20+
- cron: '0 12 * * *' # 07:00 America/New_York during EST
1921
workflow_dispatch:
2022
inputs:
2123
branchName:
@@ -32,6 +34,18 @@ jobs:
3234
env:
3335
CANARY_BRANCH: ${{ github.event.inputs.branchName || 'cs/mte-6112-xcode27-firefox-only' }}
3436
steps:
37+
# Both cron entries fire year-round; only the one matching 07:00 local
38+
# should proceed. Manual dispatch always proceeds.
39+
- name: Skip unless it is 07:00 America/New_York
40+
if: github.event_name == 'schedule'
41+
run: |
42+
LOCAL_HOUR=$(TZ=America/New_York date +%H)
43+
echo "07:00 target; America/New_York hour is ${LOCAL_HOUR}"
44+
if [ "$LOCAL_HOUR" != "07" ]; then
45+
echo "Not 07:00 local (DST duplicate); stopping."
46+
exit 1
47+
fi
48+
3549
- uses: actions/checkout@v4
3650
with:
3751
# Full history: a rebase needs the merge base with main.

0 commit comments

Comments
 (0)