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