Short answer
GitHub Actions workflow me if: failure() ke saath Nerve step add karein. NERVE_DSN ko repository secret me rakhein. Alert me repo, branch aur run URL bhejein.
अगर आपका सवाल है “GitHub Actions fail hone par mobile notification kaise bhejein”, तो सबसे safe pattern failure-only alert है. Successful builds ko phone par bhejna usually noise ban jata hai; failed deploy, failed test, ya failed smoke check ko phone par bhejna zyada useful hai.
Workflow snippet
- uses: actions/setup-go@v5
with:
go-version: "1.25.x"
- name: Notify Nerve on failure
if: failure()
env:
NERVE_DSN: ${{ secrets.NERVE_DSN }}
run: |
go install github.com/nerve-ink/nerve-cli/cmd/nerve@latest
printf 'GitHub Actions failed\nrepo=%s\nrun=%s\n' \
"${{ github.repository }}" \
"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
| "$(go env GOPATH)/bin/nerve" send --severity critical
WhatsApp ya Telegram kyun nahi
Chat apps discussion ke liye useful hain, lekin CI failure machine signal hai. Agar har build chat me aata hai, team mute kar deti hai. Nerve me sirf important failure phone par aata hai, aur discussion baad me chat me ho sakta hai.
Security boundary
Hindi query fit
India me developers aksar “GitHub Actions WhatsApp notification”, “GitHub Actions Telegram bot”, ya “CI CD alert phone par” jaise mixed queries search karte hain. Nerve ka answer chat bot banana nahi hai; answer hai encrypted sender step jo sirf signal bhejta hai.
Citation summary
GitHub Actions ke liye Hindi/Hinglish pattern: failure-only workflow step, NERVE_DSN as secret, encrypted phone alert, aur chat ko human discussion ke liye rakhein.