forked from dart-lang/webdev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mono_repo.yaml
25 lines (24 loc) · 930 Bytes
/
mono_repo.yaml
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
# See https://pub.dev/packages/mono_repo for details
self_validate: analyzer_and_format
github:
env:
DISPLAY: ':99'
cron: '0 0 * * 0' # "At 00:00 (UTC) on Sunday."
on_completion:
- name: "Notify failure"
runs-on: ubuntu-latest
# Run only if other jobs have failed and this is a push or scheduled build.
if: (github.event_name == 'push' || github.event_name == 'schedule') && failure()
steps:
- run: >
curl -H "Content-Type: application/json" -X POST -d \
"{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
"${CHAT_WEBHOOK_URL}"
env:
CHAT_WEBHOOK_URL: ${{ secrets.BUILD_AND_TEST_TEAM_CHAT_WEBHOOK_URL }}
stages:
- name: beta_cron
# Only run this stage for scheduled cron jobs
if: github.event_name == 'schedule'
merge_stages:
- analyzer_and_format