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 9ec9e8e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,17 @@ jobs:
if: ${{ github.event_name == 'schedule' }}
run: npm run test-without-coverage

- name: Mailgun Action
# if: ${{ github.event_name == 'schedule' }} && failure()
# Use always() for testing, uncomment above line for real condition
if: always()
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 9ec9e8e

Please sign in to comment.