Files
school_compare/.gitea/workflows/diag-staging.yml
T
TudorandClaude Fable 5 35752a7d53
Staging Rankings Diagnostic / Staging rankings year diagnostic (push) Successful in 1s
chore(ci): diagnostic v2 — capture headers to attribute the 500s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 15:49:15 +01:00

29 lines
901 B
YAML

# TEMPORARY diagnostic workflow — delete after the rankings year= bug is closed.
name: Staging Rankings Diagnostic
on:
push:
branches:
- diag/staging-rankings-year
jobs:
staging-api-diagnostic:
name: Staging rankings year diagnostic
runs-on: ubuntu-latest
steps:
- name: Probe staging rankings year handling
env:
BASE: ${{ secrets.STAGING_BASE_URL }}
run: |
probe() {
echo "== $1 =="
curl -s --max-time 15 -D /tmp/h.txt -o /tmp/b.txt "$BASE$1"
echo "--- headers:"; cat /tmp/h.txt
echo "--- body (first 400 bytes):"; head -c 400 /tmp/b.txt; echo
}
probe "/api/data-info"
probe "/api/filters"
probe "/api/rankings?metric=rwm_expected_pct&limit=3"
probe "/api/rankings?metric=rwm_expected_pct&limit=3&year=202425"
probe "/"