File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed
Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 8585 verbose : true
8686 env :
8787 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
88+ - name : Teams webhook
89+ if : failure() && github.event_name == 'schedule'
90+ run : |
91+ curl -X POST ${{ secrets.TEAMS_WEBHOOK }} \
92+ -H 'Content-Type: application/json' \
93+ -d '{
94+ "text": "⚠️ CI build failed",
95+ "sections": [
96+ {
97+ "activityTitle": "Scheduled master/stable build failed",
98+ "activitySubtitle": "Branch: ${{ matrix.target }}",
99+ "facts": [
100+ {
101+ "name": "OS",
102+ "value": "${{ matrix.os }}"
103+ },
104+ {
105+ "name": "Commit",
106+ "value": "${{ github.sha }}"
107+ }
108+ ],
109+ "potentialAction": [
110+ {
111+ "name": "Link",
112+ "targets": [
113+ {
114+ "os": "default",
115+ "uri": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
116+ }
117+ ]
118+ }
119+ ]
120+ }
121+ ]
122+ }'
You can’t perform that action at this time.
0 commit comments