Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing github email action #154

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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