|
43 | 43 |
|
44 | 44 | # Define environment variables: |
45 | 45 | env: |
46 | | - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |
| 46 | + ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }} |
47 | 47 |
|
48 | 48 | # Define the sequence of job steps... |
49 | 49 | steps: |
@@ -113,14 +113,23 @@ jobs: |
113 | 113 | echo "${{ steps.extract-coverage.outputs.table }}" >> $GITHUB_STEP_SUMMARY |
114 | 114 | echo "" >> $GITHUB_STEP_SUMMARY |
115 | 115 |
|
116 | | - # Send Slack notification if job fails: |
117 | | - - name: 'Send status to Slack channel in case of failure' |
| 116 | + # Send notification to Zulip if job fails: |
| 117 | + - name: 'Send notification to Zulip in case of failure' |
118 | 118 | # Pin action to full length commit SHA |
119 | | - uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2 |
120 | | - with: |
121 | | - status: ${{ job.status }} |
122 | | - channel: '#npm-ci' |
| 119 | + uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2 |
123 | 120 | if: failure() |
| 121 | + with: |
| 122 | + api-key: ${{ secrets.ZULIP_API_KEY }} |
| 123 | + email: 'github-actions-bot@stdlib.zulipchat.com' |
| 124 | + organization-url: 'https://stdlib.zulipchat.com' |
| 125 | + to: 'workflows-standalone' |
| 126 | + type: 'stream' |
| 127 | + topic: ${{ github.event.repository.name }} |
| 128 | + content: | |
| 129 | + :cross_mark: **${{ github.workflow }}** workflow failed |
| 130 | +
|
| 131 | + **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }}) |
| 132 | + **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) |
124 | 133 |
|
125 | 134 | # Send data to events server: |
126 | 135 | - name: 'Post data' |
|
0 commit comments