blob: 09f5dee1d192dda1e67c5f3efae82bffb00ea51e [file] [log] [blame]
Kevin Moore71d37252020-10-26 09:11:12 -07001# See https://pub.dev/packages/mono_repo for details
2self_validate: analyzer_and_format
Gary Roumanis22632712020-12-03 15:06:07 -08003github:
4 env:
5 DISPLAY: ':99'
Anna Gringauzeb1978722021-08-31 16:30:24 -07006 cron: '0 0 * * 0' # "At 00:00 (UTC) on Sunday."
Gary Roumanis22632712020-12-03 15:06:07 -08007 on_completion:
8 - name: "Notify failure"
9 runs-on: ubuntu-latest
10 # Run only if other jobs have failed and this is a push or scheduled build.
11 if: (github.event_name == 'push' || github.event_name == 'schedule') && failure()
12 steps:
13 - run: >
14 curl -H "Content-Type: application/json" -X POST -d \
15 "{'text':'Build failed! ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}'}" \
16 "${CHAT_WEBHOOK_URL}"
17 env:
18 CHAT_WEBHOOK_URL: ${{ secrets.BUILD_AND_TEST_TEAM_CHAT_WEBHOOK_URL }}
Anna Gringauzeb1978722021-08-31 16:30:24 -070019 stages:
20 - name: beta_cron
21 # Only run this stage for scheduled cron jobs
22 if: github.event_name == 'schedule'
Kevin Moore69c12572019-04-01 10:24:28 -070023
24merge_stages:
25- analyzer_and_format