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 8c634c2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: [email protected]
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 8c634c2

Please sign in to comment.