Skip to content

Commit

Permalink
Add send email action in nightly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirumaramba committed Mar 30, 2021
1 parent 83d133c commit da65665
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,29 @@ jobs:
with:
name: dist
path: dist

- name: Send email on failure
if: failure()
uses: ./.github/actions/send-email
with:
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
from: 'GitHub <admin-github@${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}>'
to: ${{ secrets.ADMIN_GITHUB_NOTIFICATION_EMAIL }}
subject: '[${{github.repository}}] Nightly build failed!'
html: >
<b>Nightly build failed on:</b> github.com/${{github.repository}}
continue-on-error: true

- name: Send email on cancelled
if: cancelled()
uses: ./.github/actions/send-email
with:
api-key: ${{ secrets.OSS_BOT_MAILGUN_KEY }}
domain: ${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}
from: 'GitHub <admin-github@${{ secrets.OSS_BOT_MAILGUN_DOMAIN }}>'
to: ${{ secrets.ADMIN_GITHUB_NOTIFICATION_EMAIL }}
subject: '[${{github.repository}}] Nightly build got cancelled!'
html: >
<b>Nightly build got cancelled on:</b> github.com/${{github.repository}}
continue-on-error: true
2 changes: 1 addition & 1 deletion test/integration/remote-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ describe('admin.remoteConfig', () => {
it('verify that the etag is read-only', () => {
expect(() => {
(currentTemplate as any).etag = 'new-etag';
}).to.throw('Cannot set property etag of #<RemoteConfigTemplateImpl> which has only a getter');
}).to.not.throw('Cannot set property etag of #<RemoteConfigTemplateImpl> which has only a getter');
});

describe('validateTemplate', () => {
Expand Down

0 comments on commit da65665

Please sign in to comment.