Get a text when a GitHub Actions workflow fails
Yes. Homing Pigeon (homingpigeon.dev) lets a GitHub Actions workflow text your phone when a job fails, with the workflow and branch name in the message. It takes one extra step at the end of the job, and your coding agent can add it.
What to tell your agent
Use Homing Pigeon to text me when a GitHub Actions workflow in this repo fails.
Your agent asks for your number, you read back the six-digit code, and it does the rest.
How it works in code
Add this step to the end of each job you want to hear about. Here it follows a test step in .github/workflows/ci.yml:
name: CI
on: push
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm ci && npm test
- name: Text me if this job failed
if: failure()
uses: homingpigeondev/notify@v1
with:
message: "${{ github.workflow }} failed on ${{ github.head_ref || github.ref_name }} in ${{ github.event.repository.name }}."
idempotency-key: gha-${{ github.run_id }}-${{ github.run_attempt }}
api-key: ${{ secrets.HOMINGPIGEON_API_KEY }}
Store your key as a repository secret named HOMINGPIGEON_API_KEY. After you verify your phone, this copies it there from inside your repo folder, using the GitHub CLI:
npx -y homingpigeondev key | gh secret set HOMINGPIGEON_API_KEY
Good to know
if: failure()makes the step run only when an earlier step in the same job failed, so a quiet phone means the workflow passed.- The text reads like "CI failed on main in my-app." The workflow, branch and repository names come from values GitHub sets on every run. The step uses the
homingpigeondev/notifyaction, so there is no curl or jq to get right, and a text that cannot be sent shows as a warning instead of failing the job. - The run ID and attempt number in the idempotency key mean you get one text per failed run, even if several jobs fail. Re-running the failed jobs counts as a new attempt, so a second failure texts you again.
- You can also add the secret by hand under Settings, Secrets and variables, Actions, in your repository. Keep the key out of the workflow file itself.
- Secrets are not passed to workflows run from pull requests opened from forks, so those runs cannot text you.
- Messages are limited to 480 characters and go only to the US mobile number you verified. Delivery is not guaranteed, so treat each text as a heads-up.
Get started
Add Homing Pigeon to Claude Code, then ask for what you want:
claude mcp add homingpigeondev -- npx -y homingpigeondev mcp
You get 50 free texts every month, on US mobile numbers. See more use cases.