Skip to content

Commit

Permalink
add email fail step to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Jan 10, 2024
1 parent 8032120 commit fa2b698
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,15 @@ 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 }}
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.

0 comments on commit fa2b698

Please sign in to comment.