From 7607620fbb6933bc87af0249d8cfa5a7ad187c29 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Tue, 3 Mar 2026 16:49:28 +0100 Subject: [PATCH] workflows/ci: Add success/failure ntfy notifications --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9cb43c4..a64000e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,3 +105,31 @@ jobs: - uses: actions/checkout@v5 - name: Push to deploy branch run: git push origin HEAD:deploy --force + notify-success: + if: always() && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') + needs: [build-package, build-check, build-server, build-workstation, deploy] + runs-on: ubuntu-latest + steps: + - name: Send ntfy success notification + run: | + curl -s \ + -H "Title: CI succeeded" \ + -H "Priority: low" \ + -H "Tags: white_check_mark" \ + -H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ + -d "Commit ${{ github.sha }} succeeded." \ + https://ntfy.sh/splitleaf + notify-failure: + if: always() && contains(needs.*.result, 'failure') + needs: [build-package, build-check, build-server, build-workstation, deploy] + runs-on: ubuntu-latest + steps: + - name: Send ntfy failure notification + run: | + curl -s \ + -H "Title: CI failed" \ + -H "Priority: default" \ + -H "Tags: rotating_light" \ + -H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ + -d "Commit ${{ github.sha }} failed." \ + https://ntfy.sh/splitleaf