Skip to content

Commit c11a9fe

Browse files
committed
build: migrate to Zulip for workflow notification
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent dd4c201 commit c11a9fe

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/test_published_package.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444

4545
# Define environment variables:
4646
env:
47-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
47+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
4848

4949
# Define the job's steps:
5050
steps:
@@ -95,10 +95,20 @@ jobs:
9595
# Run the example:
9696
node index.js
9797
98-
# Send Slack notification if job fails:
99-
- name: 'Send notification to Slack in case of failure'
100-
uses: 8398a7/action-slack@77eaa4f1c608a7d68b38af4e3f739dcd8cba273e # v3.19.0
101-
with:
102-
status: ${{ job.status }}
103-
channel: '#npm-ci'
98+
# Send Zulip notification if job fails:
99+
- name: 'Send notification to Zulip in case of failure'
100+
# Pin action to full length commit SHA
101+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
104102
if: failure()
103+
with:
104+
api-key: ${{ secrets.ZULIP_API_KEY }}
105+
email: 'github-actions-bot@stdlib.zulipchat.com'
106+
organization-url: 'https://stdlib.zulipchat.com'
107+
to: 'workflows'
108+
type: 'stream'
109+
topic: 'test-published-package'
110+
content: |
111+
:cross_mark: **${{ github.workflow }}** workflow failed
112+
113+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
114+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})

0 commit comments

Comments
 (0)