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 d2b550e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,15 @@ 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 }}
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 d2b550e

Please sign in to comment.