ci: fix send always notification
This commit is contained in:
parent
f44991c3a6
commit
3d8f71c9be
1 changed files with 6 additions and 4 deletions
|
@ -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 <gitea@mgrote.net>
|
||||
subject: "CI Error in ${{ env.GITHUB_REPOSITORY }}"
|
||||
body: "Job of ${{ env.github.repository }} failed!"
|
||||
subject: "CI Run ${{ env.GITHUB_REPOSITORY }}: ${{ job.status }}"
|
||||
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:
|
||||
|
|
Loading…
Reference in a new issue