From 8c634c215107df70228438f3b8a998570e648e53 Mon Sep 17 00:00:00 2001 From: Alexander Lyon Date: Wed, 10 Jan 2024 13:00:00 +0000 Subject: [PATCH] add email fail step to CI --- .github/workflows/openapi.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/openapi.yml b/.github/workflows/openapi.yml index 5e259117f..f38bba121 100644 --- a/.github/workflows/openapi.yml +++ b/.github/workflows/openapi.yml @@ -59,3 +59,16 @@ jobs: branch: openapi branch-suffix: timestamp reviewers: arlyon + - name: email if failed + if: failure() + uses: dawidd6/action-send-mail@v3 + with: + connection_url: ${{ secrets.MAIL_SERVER }} + server_port: 465 + subject: Failed to generate latest changes from OpenApi spec + to: arlyon@me.com + from: Github Actions + body: | + This is an automated email. The workflow that tries to build the latest changes generated from the [Stripe OpenApi spec](https://github.com/stripe/openapi). + + Please visit ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} to determine what failed.