-
Notifications
You must be signed in to change notification settings - Fork 41
42 lines (34 loc) · 1.27 KB
/
nightly-dispatcher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Nightly Dispatcher
on:
workflow_dispatch:
# Important note about scheduled workflows:
# Notifications for scheduled workflows are sent to the user who last modified the cron syntax in the workflow file.
schedule:
- cron: "0 2 * * *"
jobs:
backward-compatibility:
uses: ./.github/workflows/backward-compatibility.yml
docker-builds:
uses: ./.github/workflows/docker-builds.yml
aggregator-stress-test:
uses: ./.github/workflows/aggregator-stress-test.yml
test-client:
uses: ./.github/workflows/test-client.yml
notify-on-failure:
runs-on: ubuntu-22.04
needs: [docker-builds, aggregator-stress-test, test-client]
if: failure()
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Make script executable
shell: bash
run: |
chmod +x ./.github/workflows/scripts/notify-nightly-failure.js
- name: Send failure notification by email
uses: peter-evans/sendgrid-action@v1
env:
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
SCRIPT_FILEPATH: ./.github/workflows/scripts/notify-nightly-failure.js
SENDGRID_MAIL_FROM: ${{ secrets.CI_NOTIFICATION_EMAIL_FROM }}
SENDGRID_MAIL_TO: ${{ secrets.CI_NOTIFICATION_EMAIL_TO }}