From 52489ad21dbf1c1126ae2b33fb2732aa7d74a546 Mon Sep 17 00:00:00 2001 From: Eduard Wisch Date: Thu, 28 May 2026 06:54:41 +0200 Subject: [PATCH] CI: Ntfy-Benachrichtigungen (Start/Success/Failure) via data/ntfy-action [deploy] Co-Authored-By: Claude Opus 4.7 (1M context) --- .forgejo/workflows/deploy.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 842b6d6..27fc913 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -12,6 +12,15 @@ jobs: runs-on: docker if: startsWith(github.ref, 'refs/tags/v') || contains(github.event.head_commit.message, '[deploy]') steps: + - name: Notify Start + uses: https://git.data-it-solution.de/data/ntfy-action@main + with: + status: start + project: Bericht + ntfy_auth: ${{ secrets.NTFY_AUTH }} + run_number: ${{ github.run_number }} + message: ${{ github.event.head_commit.message }} + - name: Checkout run: | git clone --depth 1 --branch "${GITHUB_REF_NAME}" \ @@ -39,3 +48,22 @@ jobs: ./ "$DEPLOY_PATH/" echo "Deployment erfolgreich: ${REF} -> ${DEPLOY_PATH}" + + - name: Notify Success + if: success() + uses: https://git.data-it-solution.de/data/ntfy-action@main + with: + status: success + project: Bericht + ntfy_auth: ${{ secrets.NTFY_AUTH }} + run_number: ${{ github.run_number }} + + - name: Notify Failure + if: failure() + uses: https://git.data-it-solution.de/data/ntfy-action@main + with: + status: failure + project: Bericht + ntfy_auth: ${{ secrets.NTFY_AUTH }} + run_number: ${{ github.run_number }} + click_url: https://git.data-it-solution.de/${{ github.repository }}/actions