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 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
You can’t perform that action at this time.
0 commit comments