From dc75a63b291bdcd22e44f779d26219e4c83655f3 Mon Sep 17 00:00:00 2001 From: Michael Landis Date: Thu, 15 Sep 2022 14:36:44 -0700 Subject: [PATCH] fix: add missing github email action This email action was missing from PR #148. --- .github/actions/error-email-action/action.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/actions/error-email-action/action.yml diff --git a/.github/actions/error-email-action/action.yml b/.github/actions/error-email-action/action.yml new file mode 100644 index 00000000..83743510 --- /dev/null +++ b/.github/actions/error-email-action/action.yml @@ -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: eng-deveco@momentohq.com + # 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