From c0061491ab6b339a87dac55fe1d211a938c64b0e Mon Sep 17 00:00:00 2001 From: Ethan J Lewis Date: Sat, 9 May 2026 11:47:50 -0500 Subject: [PATCH] ci: pushover notification on pipeline failure Uses pushover_token and pushover_user secrets configured in Woodpecker. Step runs only on failure (when.status: failure) so successful runs stay quiet. Message includes branch, commit message, and a link back to the pipeline. --- .woodpecker.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.woodpecker.yml b/.woodpecker.yml index 6390355..fa3c94c 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -16,3 +16,23 @@ steps: image: node:22-alpine commands: - npm run build + + - name: notify-failure + image: curlimages/curl:latest + environment: + PUSHOVER_TOKEN: + from_secret: pushover_token + PUSHOVER_USER: + from_secret: pushover_user + commands: + - | + curl -s \ + --form-string "token=$PUSHOVER_TOKEN" \ + --form-string "user=$PUSHOVER_USER" \ + --form-string "title=Halfstreet CI failed" \ + --form-string "message=$CI_COMMIT_BRANCH: $CI_COMMIT_MESSAGE" \ + --form-string "url=$CI_PIPELINE_URL" \ + --form-string "url_title=View pipeline" \ + https://api.pushover.net/1/messages.json + when: + - status: failure