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