From f01863568362545166d2f862c8e45c57b55278dd Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 27 Sep 2024 13:02:59 +0200 Subject: [PATCH] ci: fix notification tasks --- .gitea/workflows/build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ca9c1ef..4f8921f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -68,14 +68,15 @@ jobs: tags: "registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:latest,registry.mgrote.net/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.extract_branch.outputs.REPO_BRANCH }}" - name: Send notification uses: dawidd6/action-send-mail@v3 - if: always() + if: failure() with: connection_url: smtp://docker10.mgrote.net:1025 secure: false ignore_cert: true to: michael.grote@posteo.de from: Gitea Actions - subject: "CI ${{ job.status }} in ${{ env.GITHUB_REPOSITORY }}" + subject: "CI ${{ job.status }} in ${{ github.repository }}" body: | - Repo: ${{ env.GITHUB_REPOSITORY }} + Repo: ${{ github.repository }} + Job: ${{ github.action }} Status: ${{ job.status }}