- Remove `| cat` from both Forgejo workflow curl commands so HTTP 4xx/5xx causes the step to fail (bash pipeline exit code was always 0 via cat) - Simplify sync-and-simulate: drop redundant pre-check DB query for standingsLastChangedAt; changed===true already means standings updated this run, so always simulate (runner's simulationStatus guard handles overlap) - Delete server/snapshots.ts — all exports were orphaned after startSnapshotSystem was removed from server/socket.ts in the Phase A commit Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
364 B
YAML
14 lines
364 B
YAML
name: Daily snapshots
|
|
on:
|
|
schedule:
|
|
- cron: '5 0 * * *'
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Create daily standings snapshots
|
|
run: |
|
|
curl -sf -X POST https://brackt.com/admin/jobs/run-daily-snapshots \
|
|
-H "X-Cron-Secret: ${{ secrets.CRON_SECRET }}" \
|
|
-H "Content-Type: application/json"
|