ci: fix notification tasks
This commit is contained in:
parent
ca9ceec251
commit
db11516571
1 changed files with 10 additions and 6 deletions
|
@ -27,16 +27,17 @@ jobs:
|
||||||
# cli-args: "shell.sh"
|
# cli-args: "shell.sh"
|
||||||
- name: Send notification
|
- name: Send notification
|
||||||
uses: dawidd6/action-send-mail@v3
|
uses: dawidd6/action-send-mail@v3
|
||||||
if: always()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
connection_url: smtp://docker10.mgrote.net:1025
|
connection_url: smtp://docker10.mgrote.net:1025
|
||||||
secure: false
|
secure: false
|
||||||
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 Run ${{ env.GITHUB_REPOSITORY }}: ${{ job.status }}"
|
subject: "CI ${{ job.status }} in ${{ github.repository }}"
|
||||||
body: |
|
body: |
|
||||||
Repo: ${{ env.GITHUB_REPOSITORY }}
|
Repo: ${{ github.repository }}
|
||||||
|
Job: ${{ github.action }}
|
||||||
Status: ${{ job.status }}
|
Status: ${{ job.status }}
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
@ -67,12 +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 }}"
|
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
|
- name: Send notification
|
||||||
uses: dawidd6/action-send-mail@v3
|
uses: dawidd6/action-send-mail@v3
|
||||||
if: always()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
connection_url: smtp://docker10.mgrote.net:1025
|
connection_url: smtp://docker10.mgrote.net:1025
|
||||||
secure: false
|
secure: false
|
||||||
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 ${{ github.repository }}"
|
||||||
body: Job of ${{ env.github.repository }} failed!
|
body: |
|
||||||
|
Repo: ${{ github.repository }}
|
||||||
|
Job: ${{ github.action }}
|
||||||
|
Status: ${{ job.status }}
|
||||||
|
|
Loading…
Reference in a new issue