Skip to content

Commit

Permalink
Add email sending step for failed scheduled CI runs
Browse files Browse the repository at this point in the history
  • Loading branch information
audiodude committed Dec 10, 2024
1 parent 1763a23 commit cdd3f70
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: ${{ github.event_name == 'schedule' }} && ${{ failure() }}
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'

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

0 comments on commit cdd3f70

Please sign in to comment.