File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed
Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 11name : CI
22
33on :
4+ schedule :
5+ - cron : ' 0 0 * * *'
46 push :
57 branches : [main]
68 pull_request :
2729 TEST_DATABEND_DSN : " databend://databend:databend@localhost:8000/default?sslmode=disable"
2830 run : |
2931 make integration
32+
33+ notify :
34+ if : failure()
35+ needs : [ test ]
36+ runs-on : ubuntu-latest
37+ steps :
38+ - uses : actions/checkout@v4
39+ - name : Notify Dev Team
40+ uses : actions/github-script@v7
41+ env :
42+ WEBHOOK_URL : ${{ secrets.DEV_TEAM_WEBHOOK_URL }}
43+ with :
44+ script : |
45+ const body = {
46+ msg_type: 'text',
47+ content: {
48+ text: '⚠️ Databend JDBC Integration Tests Failed: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}',
49+ }
50+ }
51+ const response = await fetch(process.env.WEBHOOK_URL, {
52+ method: 'POST',
53+ body: JSON.stringify(body),
54+ headers: {'Content-Type': 'application/json'}
55+ });
56+ const result = await response.json();
57+ console.log(result);
Original file line number Diff line number Diff line change 11.envrc
2+ tmp
23/dist
34/CHANGELOG.md
45/script /build
You can’t perform that action at this time.
0 commit comments