Skip to content

Commit 02a6832

Browse files
committed
Notify on failure
1 parent 0808e61 commit 02a6832

File tree

3 files changed

+41
-0
lines changed

3 files changed

+41
-0
lines changed

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,3 +366,29 @@ jobs:
366366
S3_BUCKET_NAME: 'builds.emberjs.com'
367367
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY}}
368368
S3_ACCESS_KEY_ID: ${{ secrets.S3_ACCESS_KEY_ID}}
369+
370+
notify:
371+
name: Notify Discord
372+
runs-on: ubuntu-latest
373+
needs:
374+
[
375+
basic-test,
376+
lint,
377+
browserstack-test,
378+
production-test,
379+
production-debug-render-test,
380+
extend-prototypes-test,
381+
node-test,
382+
blueprint-test,
383+
browser-test,
384+
]
385+
if: failure() && contains(github.ref, 'cron') == true
386+
steps:
387+
- uses: sarisia/actions-status-discord@v1
388+
with:
389+
webhook: ${{ secrets.FRAMEWORK_WEBHOOK }}
390+
status: "Failure"
391+
title: "Ember.js Nightly CI"
392+
color: 0xcc0000
393+
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
394+
username: GitHub Actions

.github/workflows/cron.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Cron
33
on:
44
schedule:
55
- cron: '0 7 * * *' # daily, 7am
6+
workflow_dispatch:
67

78
jobs:
89
trigger-ci:

.github/workflows/night-ts.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ jobs:
1010
- run: yarn install --frozen-lockfile --non-interactive
1111
- run: yarn add -D typescript@next
1212
- run: yarn type-check
13+
notify:
14+
name: Notify Discord
15+
runs-on: ubuntu-latest
16+
needs: [ ts-next ]
17+
if: failure()
18+
steps:
19+
- uses: sarisia/actions-status-discord@v1
20+
with:
21+
webhook: ${{ secrets.TYPESCRIPT_WEBHOOK }}
22+
status: "Failure"
23+
title: "Ember.js Nightly TypeScript Run"
24+
color: 0xcc0000
25+
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
26+
username: GitHub Actions
1327

1428
# ...nightly at midnight
1529
on:

0 commit comments

Comments
 (0)