Kevin Moore | 71d3725 | 2020-10-26 09:11:12 -0700 | [diff] [blame] | 1 | # See https://pub.dev/packages/mono_repo for details |
| 2 | self_validate: analyzer_and_format |
Gary Roumanis | 2263271 | 2020-12-03 15:06:07 -0800 | [diff] [blame] | 3 | github: |
| 4 | env: |
| 5 | DISPLAY: ':99' |
Anna Gringauze | b197872 | 2021-08-31 16:30:24 -0700 | [diff] [blame] | 6 | cron: '0 0 * * 0' # "At 00:00 (UTC) on Sunday." |
Gary Roumanis | 2263271 | 2020-12-03 15:06:07 -0800 | [diff] [blame] | 7 | 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 Gringauze | b197872 | 2021-08-31 16:30:24 -0700 | [diff] [blame] | 19 | stages: |
| 20 | - name: beta_cron |
| 21 | # Only run this stage for scheduled cron jobs |
| 22 | if: github.event_name == 'schedule' |
Kevin Moore | 69c1257 | 2019-04-01 10:24:28 -0700 | [diff] [blame] | 23 | |
| 24 | merge_stages: |
| 25 | - analyzer_and_format |