Skip to content

Commit adbb0f5

Browse files
maven.yml: Send reports to zulip
1 parent e504832 commit adbb0f5

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/maven.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,39 @@ jobs:
2929
cache: maven
3030
- name: Build with Maven
3131
run: mvn package
32+
continue-on-error: true
33+
34+
- name: Notify Zulip on success
35+
if: steps.buildstep.outcome == 'success'
36+
run: |
37+
curl -X POST "https://piccodescript.zulipchat.com/api/v1/external/github?api_key=${{ secrets.ZULIP_API_KEY }}&stream=511550&ignore_private_repositories=true" \
38+
-H "Content-Type: application/json" \
39+
-d '{
40+
"action": "build succeeded",
41+
"repository": {
42+
"full_name": "${{ github.repository }}",
43+
"html_url": "https://github.com/${{ github.repository }}"
44+
},
45+
"sender": {
46+
"login": "${{ github.actor }}",
47+
"html_url": "https://github.com/${{ github.actor }}"
48+
}
49+
}'
50+
51+
- name: Notify Zulip on failure
52+
if: steps.buildstep.outcome == 'failure'
53+
run: |
54+
curl -X POST "https://piccodescript.zulipchat.com/api/v1/external/github?api_key=${{ secrets.ZULIP_API_KEY }}&stream=511550&ignore_private_repositories=true" \
55+
-H "Content-Type: application/json" \
56+
-d '{
57+
"action": "build failed",
58+
"repository": {
59+
"full_name": "${{ github.repository }}",
60+
"html_url": "https://github.com/${{ github.repository }}"
61+
},
62+
"sender": {
63+
"login": "${{ github.actor }}",
64+
"html_url": "https://github.com/${{ github.actor }}"
65+
}
66+
}'
3267

0 commit comments

Comments
 (0)