ci: test mail body
This commit is contained in:
parent
72c7edb0cc
commit
c4906e2bb2
1 changed files with 10 additions and 6 deletions
|
@ -25,7 +25,7 @@ jobs:
|
||||||
# uses: sudo-bot/action-shellcheck@latest
|
# uses: sudo-bot/action-shellcheck@latest
|
||||||
# with:
|
# with:
|
||||||
# cli-args: "shell.sh"
|
# cli-args: "shell.sh"
|
||||||
- name: Send notification on error
|
- name: Send notification
|
||||||
uses: dawidd6/action-send-mail@v3
|
uses: dawidd6/action-send-mail@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
@ -34,8 +34,10 @@ jobs:
|
||||||
ignore_cert: true
|
ignore_cert: true
|
||||||
to: michael.grote@posteo.de
|
to: michael.grote@posteo.de
|
||||||
from: Gitea Actions <gitea@mgrote.net>
|
from: Gitea Actions <gitea@mgrote.net>
|
||||||
subject: "CI Error in ${{ env.GITHUB_REPOSITORY }}"
|
subject: "CI ${{ job.status }} in ${{ env.GITHUB_REPOSITORY }}"
|
||||||
body: "Job of ${{ env.github.repository }} failed!"
|
body: |
|
||||||
|
Repo: ${{ env.GITHUB_REPOSITORY }}
|
||||||
|
Status: ${{ job.status }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: [gitleaks, hadolint] # shellcheck
|
needs: [gitleaks, hadolint] # shellcheck
|
||||||
|
@ -63,7 +65,7 @@ jobs:
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
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 }}"
|
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
|
uses: dawidd6/action-send-mail@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
@ -72,5 +74,7 @@ jobs:
|
||||||
ignore_cert: true
|
ignore_cert: true
|
||||||
to: michael.grote@posteo.de
|
to: michael.grote@posteo.de
|
||||||
from: Gitea Actions <gitea@mgrote.net>
|
from: Gitea Actions <gitea@mgrote.net>
|
||||||
subject: "CI Error in ${{ env.GITHUB_REPOSITORY }}"
|
subject: "CI ${{ job.status }} in ${{ env.GITHUB_REPOSITORY }}"
|
||||||
body: Job of ${{ env.github.repository }} failed!
|
body: |
|
||||||
|
Repo: ${{ env.GITHUB_REPOSITORY }}
|
||||||
|
Status: ${{ job.status }}
|
||||||
|
|
Loading…
Reference in a new issue