Skip to content

Commit 2a9ab7a

Browse files
authored
Merge pull request #20372 from kategengler/kg-gh-workflows
2 parents 88a49d0 + 02a6832 commit 2a9ab7a

File tree

3 files changed

+42
-5
lines changed

3 files changed

+42
-5
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
needs: [basic-test, lint, types]
127127
steps:
128128
- uses: actions/checkout@v3
129-
- uses: actions/setup-node@v2
129+
- uses: actions/setup-node@v3
130130
with:
131131
node-version: 14.x
132132
cache: yarn
@@ -238,10 +238,6 @@ jobs:
238238
cache: yarn
239239
- name: install dependencies
240240
run: yarn install --frozen-lockfile --non-interactive
241-
- uses: actions/download-artifact@v3
242-
with:
243-
name: dist
244-
path: dist
245241
- name: test
246242
run: yarn test:blueprints
247243

@@ -370,3 +366,29 @@ jobs:
370366
S3_BUCKET_NAME: 'builds.emberjs.com'
371367
S3_SECRET_ACCESS_KEY: ${{ secrets.S3_SECRET_ACCESS_KEY}}
372368
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)