mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-22 02:50:04 -05:00
add send email action to failed ORM integration tests (#4882)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"Template": {
|
||||
"TemplateName": "OrmIntegrationFailureTemplate",
|
||||
"SubjectPart": "ORM Integrations Test failed for ref: {{version}}",
|
||||
"HtmlPart": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n <meta charset=\"UTF-8\">\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <title>ORM Integration Test Failed</title>\n</head><body>ORM Integrations Test failed for ref: {{version}}\n <a href={{workflowURL}}>{{workflowURL}}</a></body></html>",
|
||||
"TextPart": "ORM Integrations Test failed for ref {{version}}\r\n"
|
||||
}
|
||||
}
|
||||
@@ -17,3 +17,19 @@ jobs:
|
||||
run: cp -r ./go ./integration-tests/go
|
||||
- name: Test ORM integrations
|
||||
uses: ./.github/actions/orm-tests
|
||||
- name: Configure AWS Credentials
|
||||
if: ${{ failure() }}
|
||||
uses: aws-actions/configure-aws-credentials@v1-node16
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: us-west-2
|
||||
- name: Send Email
|
||||
if: ${{ failure() }}
|
||||
uses: ./.github/actions/ses-email-action
|
||||
with:
|
||||
template: 'OrmIntegrationFailureTemplate'
|
||||
region: us-west-2
|
||||
version: ${{ github.ref }}
|
||||
toAddresses: '["jennifer@dolthub.com", "tim@dolthub.com"]'
|
||||
workflowURL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
|
||||
Reference in New Issue
Block a user