From c4906e2bb264a05030eca3eedeccfd77e8951e1f Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Fri, 27 Sep 2024 12:48:44 +0200 Subject: [PATCH] ci: test mail body --- .gitea/workflows/build.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 87bf5f2..debb106 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -25,7 +25,7 @@ jobs: # uses: sudo-bot/action-shellcheck@latest # with: # cli-args: "shell.sh" - - name: Send notification on error + - name: Send notification uses: dawidd6/action-send-mail@v3 if: always() with: @@ -34,8 +34,10 @@ jobs: ignore_cert: true to: michael.grote@posteo.de from: Gitea Actions - subject: "CI Error in ${{ env.GITHUB_REPOSITORY }}" - body: "Job of ${{ env.github.repository }} failed!" + subject: "CI ${{ job.status }} in ${{ env.GITHUB_REPOSITORY }}" + body: | + Repo: ${{ env.GITHUB_REPOSITORY }} + Status: ${{ job.status }} build: needs: [gitleaks, hadolint] # shellcheck @@ -63,7 +65,7 @@ jobs: file: ./Dockerfile push: true 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 on error + - name: Send notification uses: dawidd6/action-send-mail@v3 if: always() with: @@ -72,5 +74,7 @@ jobs: ignore_cert: true to: michael.grote@posteo.de from: Gitea Actions - subject: "CI Error in ${{ env.GITHUB_REPOSITORY }}" - body: Job of ${{ env.github.repository }} failed! + subject: "CI ${{ job.status }} in ${{ env.GITHUB_REPOSITORY }}" + body: | + Repo: ${{ env.GITHUB_REPOSITORY }} + Status: ${{ job.status }}