From a55b273408553e643e25dd1c5410114dd5d9636f Mon Sep 17 00:00:00 2001 From: Travis Briggs Date: Mon, 9 Dec 2024 17:50:05 -0800 Subject: [PATCH] Add email sending step for failed scheduled CI runs --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index acbc5840..f4648e81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/mailgun-action@v1.1 + 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' }}