Skip to content

Commit

Permalink
Merge pull request #2115 from openzim/scheduled-ci-email
Browse files Browse the repository at this point in the history
Add email sending step for failed scheduled CI runs
  • Loading branch information
audiodude authored Dec 14, 2024
2 parents ee070cf + a55b273 commit 5388d72
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,16 @@ jobs:
if: ${{ github.event_name == 'schedule' }}
run: npm run test-without-coverage

- name: Mailgun Action
if: ${{ failure() && github.event_name == 'schedule' }}
uses: vineetchoudhary/[email protected]
with:
api-key: ${{ secrets.MAILGUN_API_KEY }}
domain: ${{ secrets.MAILGUN_DOMAIN }}
from: 'mwoffliner-github-alert'
to: ${{ secrets.CI_SCHEDULED_FAIL_EMAIL_TO }}
subject: 'mwoffliner scheduled CI run FAILED (silent)'

- name: Uploading Codecov stats
uses: codecov/codecov-action@v4
if: ${{ matrix.node-version == '18.x' }}
Expand Down

0 comments on commit 5388d72

Please sign in to comment.