Checks Brainstem's production /health from outside Railway every 15 minutes and posts to Discord
when it goes down and when it comes back.
It lives in its own public repository because GitHub Actions is free on public repositories. The
same check inside the private rootvc/brainstem repository used 2,880 of the organization's 3,000
included minutes a month and ran them out.
- One Discord message when the check starts failing, one when it recovers. Nothing in between.
- The webhook is the
DISCORD_WEBHOOK_URLrepository secret. With no secret the run still fails visibly but posts nothing. - GitHub switches off scheduled workflows in a repository with no activity for 60 days. The last step re-enables the workflow on every run, which resets that clock.
- Run it by hand:
gh workflow run uptime.yml --repo rootvc/brainstem-uptime. - Test the Discord delivery:
gh workflow run uptime.yml --repo rootvc/brainstem-uptime -f test_alert=true. It posts a labelled test message and passes.