From 3ccdf43dbe4bee85e1b9ac94c01c2719b1df06cc Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Mon, 2 Sep 2024 20:57:58 +0200 Subject: [PATCH] dd --- .gitea/workflows/build.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index cdc0e1f..be5d28d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -9,7 +9,7 @@ on: # Variables: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables#default-environment-variables + https://forgejo.org/docs/latest/user/actions/#env-1 jobs: - gitleaks: + lint: steps: - name: Checkout code uses: actions/checkout@v4 @@ -17,15 +17,23 @@ jobs: uses: docker://zricethezav/gitleaks:v8.18.4 with: args: detect --no-git --verbose --source ${{ github.workspace }} - - hadolint: - steps: - name: Checkout code uses: actions/checkout@v4 - name: Run hadolint uses: docker://pipelinecomponents/hadolint:0.26.4 with: args: false ; hadolint Dockerfile + - name: Send notification on error + uses: dawidd6/action-send-mail@v3 + 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 Error in ${{ env.GITHUB_REPOSITORY }}" + body: Job of ${{ env.github.repository }} failed! # shellcheck: # https://github.com/marketplace/actions/shellcheck # steps: