Skip to content

Commit

Permalink
fix: add missing github email action
Browse files Browse the repository at this point in the history
This email action was missing from PR #148.
  • Loading branch information
malandis committed Sep 15, 2022
1 parent 9794827 commit dc75a63
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/actions/error-email-action/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: 'Sdk Sample Error Email'
inputs:
username:
required: true
password:
required: true
runs:
using: "composite"
steps:
- uses: dawidd6/action-send-mail@v3
with:
# Required mail server address:
server_address: smtp.gmail.com
# Required mail server port:
server_port: 465
# Optional (recommended): mail server username:
username: ${{inputs.username}}
# Optional (recommended) mail server password:
password: ${{inputs.password}}
# Required mail subject:
subject: SDK Examples Build failed - ${{ github.job }}
# Required recipients' addresses:
to: [email protected]
# Required sender full name (address can be skipped):
from: Dev Eco
# Optional whether this connection use TLS (default is true if server_port is 465)
secure: true
# Optional plain body:
body: |
"${{github.job}}" build job of "${{github.repository}}", branch "${{ github.head_ref || github.ref_name }}" failed!
See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} for details.
# Optional unsigned/invalid certificates allowance:
ignore_cert: true

0 comments on commit dc75a63

Please sign in to comment.