Skip to content

Commit da65665

Browse files
committed
Add send email action in nightly workflow
1 parent 83d133c commit da65665

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/nightly.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,29 @@ jobs:
6666
with:
6767
name: dist
6868
path: dist
69+
70+
- name: Send email on failure
71+
if: failure()
72+
uses: ./.github/actions/send-email
73+
with:
74+
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
75+
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
76+
from: 'GitHub <admin-github@${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}>'
77+
to: ${{ secrets.ADMIN_GITHUB_NOTIFICATION_EMAIL }}
78+
subject: '[${{github.repository}}] Nightly build failed!'
79+
html: >
80+
<b>Nightly build failed on:</b> github.com/${{github.repository}}
81+
continue-on-error: true
82+
83+
- name: Send email on cancelled
84+
if: cancelled()
85+
uses: ./.github/actions/send-email
86+
with:
87+
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
88+
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
89+
from: 'GitHub <admin-github@${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}>'
90+
to: ${{ secrets.ADMIN_GITHUB_NOTIFICATION_EMAIL }}
91+
subject: '[${{github.repository}}] Nightly build got cancelled!'
92+
html: >
93+
<b>Nightly build got cancelled on:</b> github.com/${{github.repository}}
94+
continue-on-error: true

test/integration/remote-config.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ describe('admin.remoteConfig', () => {
8585
it('verify that the etag is read-only', () => {
8686
expect(() => {
8787
(currentTemplate as any).etag = 'new-etag';
88-
}).to.throw('Cannot set property etag of #<RemoteConfigTemplateImpl> which has only a getter');
88+
}).to.not.throw('Cannot set property etag of #<RemoteConfigTemplateImpl> which has only a getter');
8989
});
9090

9191
describe('validateTemplate', () => {

0 commit comments

Comments
 (0)