From 3955481e324e845e46761fb9e263850b2e7f1e89 Mon Sep 17 00:00:00 2001 From: bretello Date: Mon, 8 Jan 2024 10:36:55 +0100 Subject: [PATCH] ci: add failure notification --- .github/workflows/build_image.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build_image.yml b/.github/workflows/build_image.yml index 52d88ab..90ed30e 100644 --- a/.github/workflows/build_image.yml +++ b/.github/workflows/build_image.yml @@ -29,3 +29,12 @@ jobs: with: push: true tags: registry.decapod.one/brethil/dotfiles:latest + - name: Notify on failure + if: failure() + run: python -m venv . + pip install https://git.decapod.one/brethil/bretellofier + + ./bin/bretellofier "[brethil/dotfiles] 💥 Build failed" + env: + BRETELLOFIER_RECIPIENTS: ${{ secrets.BRETELLOFIER_RECIPIENTS }} + BRETELLOFIER_TOKEN: ${{ secrets.BRETELLOFIER_TOKEN}}