Skip to content

Commit

Permalink
Define CI failure emails "body" content in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
manicki committed Sep 19, 2024
1 parent 463fe53 commit 7bbde87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci_failure_email.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CI workflow ${{ github.workflow }} failed!

The failed job can be found in [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
7 changes: 3 additions & 4 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ jobs:
server_port: 465
username: ${{secrets.CI_MAIL_USERNAME}}
password: ${{secrets.CI_MAIL_PASSWORD}}
to: wikidata-ci-status@wikimedia.de
to: leszek.manicki@wikimedia.de
from: ${{ github.repository }} CI
subject: CI job failed for ${{ github.repository }}
html_body: |
CI workflow ${{ github.workflow }} failed!
The failed job can be found in <a href="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}">here</a>
convert_markdown: true
html_body: file:///home/runner/work/Diff/Diff/.github/workflows/ci_failure_email.md

0 comments on commit 7bbde87

Please sign in to comment.