Commit becfb96
daily: notify #crash-bot-ci on workflow failure
Yesterday's 403 (NJSP feed) and today's GH-API 429 (crash-log walker) both
silently failed — there was no whole-pipeline failure notification, only
the narrow `summaries.dvc` PDF/XML-mismatch hook from `notify.py`. Both
cron-scheduled runs went unnoticed, missing a day of NJSP refresh.
Add a final `if: failure()` step that delegates to
`.github/scripts/notify-ci-failure.sh`:
- Looks up which step failed via `gh run view --json jobs --jq …`
- Posts ":x: *Daily pipeline failed* at \`<step>\` (<branch> <sha> <subject>,
event=<schedule|workflow_dispatch>)" with a "view run" link
- No-op (prints to stdout instead of raising) when `SLACK_CI_CHANNEL_ID` or
`SLACK_BOT_TOKEN` isn't set, so dev/test runs stay quiet
- Surfaces Slack API failures via `::warning::` annotation rather than
blocking — the pipeline already failed; we don't want notification
failure to mask the real cause
Pure-bash so it still runs even when the failure is in early dependency-
install steps (before `.venv/bin` lands on `PATH`).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 1788863 commit becfb96
2 files changed
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
0 commit comments