From e88bce176e832f0914a37d8a6ab1307147297115 Mon Sep 17 00:00:00 2001 From: Ondrej Belusky Date: Wed, 28 Oct 2026 10:09:28 +0100 Subject: [PATCH] Report the run through ci-notify, so a pass on master is announced as well as a failure --- .gitea/workflows/build.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index c88eefd..c3b93e8 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -47,17 +47,13 @@ jobs: - name: Bump & Tag run: go run main.go - notify-failure: + notify: runs-on: [ubuntu-latest, amd64] needs: [test, build] - if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped')) + if: always() steps: - - name: ntfy-failed-notifications - uses: niniyas/ntfy-action@master + - name: Notify + uses: https://lab.zlymeda.dynu.net/actions/ci-notify@master with: - url: ${{ secrets.NTFY_URL }} - topic: ${{ secrets.NTFY_TOPIC }} - priority: 5 - tags: flying_saucer,warning,🚨,🛠️,action,failed - details: Workflow has failed! - actions: 'default' + needs: ${{ toJSON(needs) }} + ntfy_token: ${{ secrets.NTFY_TOKEN }}