Menu

GitHub Actions notifications on your Android phone, and an alert when a schedule stops
📰

GitHub Actions notifications on your Android phone, and an alert when a schedule stops

DEV Community: cicd·anypush·7 days ago
#P8rHz5a9
#devtocicd#devto#dev#github#anypush
Long article (862 words) — no AI summary yet.
Reading 0:00
15s threshold

A failed workflow buzzes your phone with a link to the run. A scheduled workflow sends a silent heartbeat, so you also hear when it stops running.

A push when a workflow fails

Make a channel in the app and copy its address. In the repository, add it as a secret named ANYPUSH_CHANNEL (Settings, Secrets and variables, Actions). Then add a step that runs only when the job failed. Tapping the notification opens the run.

curl step

- name : Tell my phone if : failure() shell : bash run : | curl -fsS -m 10 --retry 3 \ -H "Title : ${{ github.repository }}" \ -H "Priority : high" \ -H "Click : ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ -d "${{ github.workflow }} failed on ${{ github.ref_name }}" \ "${{ secrets.ANYPUSH_CHANNEL }}"

Enter fullscreen mode

Exit fullscreen mode

Answer: {"duplicate":false,"id":795,"status_url":"***/messages/795"}

anypush notify action

- uses : anypush/anypush-notify@v1 if : failure() with : channel : ${{ secrets.ANYPUSH_CHANNEL }}…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.