blob: 09f5dee1d192dda1e67c5f3efae82bffb00ea51e [file] [log] [blame] [edit]
# 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