Zum Inhalt springen

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

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.

Free to start, no ads. Android 7 and up.

One step at the end of a job

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.

- 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 }}"

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

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

anypush: sent (message 792).

The action sets the title, the link and the priority for you, and keys each message to the run, so a retried step sends once. Its source is short: github.com/anypush/anypush-notify.

Scheduled workflows

Hear about the nightly run that never started.

GitHub's own documentation says two things about the schedule event: it "can be delayed during periods of high loads of GitHub Actions workflow runs", when "some queued jobs may be dropped", and "in a public repository, scheduled workflows are automatically disabled when no repository activity has occurred in 60 days". A dropped or disabled run sends no failure. So let every run report, silently when it works, and switch on Alert me if it goes quiet on the channel, with a little more than the schedule's interval.

on:
  schedule:
    - cron: "17 3 * * *"
jobs:
  nightly:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - run: ./nightly.sh
      # a success is a silent heartbeat, a failure an alert
      - if: always()
        shell: bash
        run: |
          [ "${{ job.status }}" = success ] && s=0 || s=1
          curl -fsS -m 10 --retry 3 -X POST "${{ secrets.ANYPUSH_CHANNEL }}/$s"
- uses: anypush/anypush-notify@v1
  if: always()
  with:
    channel: ${{ secrets.ANYPUSH_CHANNEL }}
    job-status: ${{ job.status }}
    heartbeat: true

Then, in the app, open the channel and set Alert me if it goes quiet to 1 day for a nightly schedule. A run that is dropped, delayed past the day, or never scheduled again reaches you as one alert. Source: GitHub Docs, Events that trigger workflows, schedule.

Tested on 26 November 2026

On 26 November 2026 both examples ran on GitHub's ubuntu-latest, macos-latest and windows-latest runners against a live channel, in public workflows: github.com/anypush/anypush-notify/actions. After a step that failed, the curl step (with the system's name added to its text) arrived from each system as a high-priority notification titled with the repository, and tapping it opened the run. GitHub masks a secret in the log, so the address shows there as ***. The action sent one message from each system, and with heartbeat: true a job that succeeded sent a heartbeat and no notification.

Doesn't GitHub notify me already?

If you turn them on, GitHub notifies you by email or on the web when a workflow run you triggered has completed (GitHub Docs, notifications for workflow runs). Use those if they reach you. anypush is for an alert that does not depend on who pushed, that a scheduled run can send, that can be high priority through your phone's quiet hours, and that also covers the run that never happened.

Questions

Is the channel address safe in a public repository?

Only as a secret. Never put the address in the workflow file: anyone with it can send to your phone. GitHub does not pass secrets to workflows that run on pull requests from forks, so a stranger's pull request cannot read it.

Will a re-run send the message twice?

With the action, no: each message carries a key made of the run, the attempt and the step. The curl step sends again on every run, which for a re-run is usually what you want.

Does it work on macOS and Windows runners?

Yes. Both the curl step and the action ran on ubuntu-latest, macos-latest and windows-latest on the day this page was tested.

Can I send from GitLab CI, Jenkins or any other CI?

Yes. A channel is an HTTP POST, so the curl line works in any CI that has curl.

More recipes: cron job monitoring, backup failed alerts, push notifications with curl, and everything a channel's address takes.

The action's source: anypush/anypush-notify on GitHub. It sits with anypush's other open-source integrations (Home Assistant, n8n, Node-RED) at github.com/anypush.

Get anypush

Free to start, no ads. Android 7 and up.