From 69089f6d2cc97c63ac95aa59a02a08212bcf1fde Mon Sep 17 00:00:00 2001 From: emil Date: Mon, 22 Jun 2026 01:39:59 +0000 Subject: [PATCH] GRM-51: ci: add failure notifications to all post-merge jobs --- .gitea/workflows/post-merge.yml | 48 +++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/.gitea/workflows/post-merge.yml b/.gitea/workflows/post-merge.yml index 6f173e7..dc459f5 100644 --- a/.gitea/workflows/post-merge.yml +++ b/.gitea/workflows/post-merge.yml @@ -78,6 +78,18 @@ jobs: set -euo pipefail . .venv/bin/activate python3 scripts/ci/release.py + - name: Notify on failure + if: failure() + env: + REPO_TOKEN: ${{ secrets.REPO_TOKEN }} + PYTHONPATH: src + run: | + set -euo pipefail + python3 scripts/ci/notify_failure.py \ + --repo "${{ github.repository }}" \ + --run-id "${{ github.run_id }}" \ + --workflow "post-merge/release" \ + --commit "${{ github.sha }}" sync-wiki: needs: [detect-type] @@ -98,6 +110,18 @@ jobs: set -euo pipefail . .venv/bin/activate python3 scripts/ci/sync_wiki.py --repo "${{ github.repository }}" --strict + - name: Notify on failure + if: failure() + env: + REPO_TOKEN: ${{ secrets.REPO_TOKEN }} + PYTHONPATH: src + run: | + set -euo pipefail + python3 scripts/ci/notify_failure.py \ + --repo "${{ github.repository }}" \ + --run-id "${{ github.run_id }}" \ + --workflow "post-merge/sync-wiki" \ + --commit "${{ github.sha }}" badges: needs: [detect-type] @@ -134,6 +158,18 @@ jobs: git add *.svg git commit --no-verify -m "Update badges [skip ci]" git push origin badges --force + - name: Notify on failure + if: failure() + env: + REPO_TOKEN: ${{ secrets.REPO_TOKEN }} + PYTHONPATH: src + run: | + set -euo pipefail + python3 scripts/ci/notify_failure.py \ + --repo "${{ github.repository }}" \ + --run-id "${{ github.run_id }}" \ + --workflow "post-merge/badges" \ + --commit "${{ github.sha }}" vikunja: needs: [detect-type] @@ -155,3 +191,15 @@ jobs: python3 scripts/ci/post_merge.py \ "$(git log -1 --pretty=%B)" \ --commit-sha "$(git rev-parse HEAD)" + - name: Notify on failure + if: failure() + env: + REPO_TOKEN: ${{ secrets.REPO_TOKEN }} + PYTHONPATH: src + run: | + set -euo pipefail + python3 scripts/ci/notify_failure.py \ + --repo "${{ github.repository }}" \ + --run-id "${{ github.run_id }}" \ + --workflow "post-merge/vikunja" \ + --commit "${{ github.sha }}"