Skip to content

Commit c5883cf

Browse files
smachclaude
andcommitted
Fix publish workflow schedule to match intended cadence
The workflow defined only a single 12-minute cron, but the job's `if` gated on an hourly cron string ("0 0-6,15-23 * * *") that was never registered. So the hourly fallback never matched, and when WORLDCUP26_LIVE was false the site stopped rebuilding entirely instead of refreshing hourly. Register two crons: an hourly tick that always runs, and a 10-minute tick (:10-:50, excluding :00 to avoid double runs) that proceeds only when WORLDCUP26_LIVE is true. Bump to 0.5.1. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent cb2b48a commit c5883cf

3 files changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@ on:
44
push:
55
branches: [main]
66
schedule:
7-
# Every 12 minutes during match windows (15:00–06:00 UTC), skip overnight lull.
8-
- cron: "0,12,24,36,48 0-6,15-23 * * *"
7+
# Match window is 15:00-06:00 UTC (hours 15-23 and 0-6); skip the overnight lull.
8+
# Hourly tick (top of the hour): always runs.
9+
- cron: "0 0-6,15-23 * * *"
10+
# Every 10 minutes (excluding :00, covered above): only runs when WORLDCUP26_LIVE is true.
11+
- cron: "10,20,30,40,50 0-6,15-23 * * *"
912
workflow_dispatch:
1013

1114
permissions:
@@ -15,8 +18,8 @@ jobs:
1518
render:
1619
runs-on: ubuntu-latest
1720

18-
# The hourly tick and manual/push runs always proceed; the 10-min tick
19-
# only proceeds when the repo variable WORLDCUP26_LIVE is "true".
21+
# The hourly tick (cron "0 ...") and manual/push runs always proceed; the
22+
# 10-min ticks only proceed when the repo variable WORLDCUP26_LIVE is "true".
2023
if: >
2124
github.event_name != 'schedule' ||
2225
github.event.schedule == '0 0-6,15-23 * * *' ||

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: worldcup26
22
Title: Access FIFA 2026 World Cup Schedule and Results
3-
Version: 0.5.0
3+
Version: 0.5.1
44
Authors@R:
55
person("Sharon", "Machlis", , "smachlis@gmail.com", role = c("aut", "cre"))
66
Description: An R wrapper for the football-data.org v4 API that retrieves

NEWS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# worldcup26 0.5.1
2+
3+
* Bug fix: the publish workflow's schedule didn't match its documented
4+
behavior. It defined only a single 12-minute cron, while the job's `if`
5+
condition gated on an hourly cron string (`"0 0-6,15-23 * * *"`) that was
6+
never registered. As a result the hourly fallback never matched, so when
7+
`WORLDCUP26_LIVE` was `false` the site stopped rebuilding entirely instead of
8+
refreshing once an hour. The workflow now registers two crons: an hourly tick
9+
that always runs, and a 10-minute tick (`:10`-`:50`) that runs only when
10+
`WORLDCUP26_LIVE` is `true`.
11+
12+
_[This update was written by Claude]_
13+
114
# worldcup26 0.5.0
215

316
* The "By team" tab on the companion Quarto site now shows scores from the

0 commit comments

Comments
 (0)