Commit f5ea97189e
Verified · cmc
Layout: unified · split
.github/workflows/daily-pull.yml +4 −1
| @@ -186,9 +186,12 @@ jobs: | ||
| 186 | 186 | # raise the alarm without also blocking the archive from being published. |
| 187 | 187 | - name: Check the feeds are still moving |
| 188 | 188 | run: | |
| 189 | # An allowlist, not an exclusion: naming the live feeds means adding a | |
| 190 | # backfill source cannot quietly turn this into a permanent failure, | |
| 191 | # which is exactly what renaming opd_csv to opd_archive did. | |
| 189 | 192 | sqlite3 -noheader "$DB" \ |
| 190 | 193 | "SELECT source || ' ' || MAX(occurred_at) FROM incidents |
| 191 | WHERE source <> 'opd_csv' GROUP BY source | |
| 194 | WHERE source IN ('opd', 'sarpy', 'cbpd') GROUP BY source | |
| 192 | 195 | HAVING MAX(occurred_at) < datetime('now', '-7 days')" > stale.txt |
| 193 | 196 | if [ -s stale.txt ]; then |
| 194 | 197 | while read -r line; do echo "::error::feed is stale: $line"; done < stale.txt |