@@ -337,14 +337,23 @@ jobs:
337337 echo "Pushing changes to $SLUG..."
338338 git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno
339339
340- # Send status to Slack channel if job fails:
341- - name : ' Send status to Slack channel in case of failure'
340+ # Send notification to Zulip if job fails:
341+ - name : ' Send notification to Zulip in case of failure'
342342 # Pin action to full length commit SHA
343- uses : 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
344- with :
345- status : ${{ job.status }}
346- channel : ' #npm-ci'
343+ uses : zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
347344 if : failure()
345+ with :
346+ api-key : ${{ secrets.ZULIP_API_KEY }}
347+ email : ' github-actions-bot@stdlib.zulipchat.com'
348+ organization-url : ' https://stdlib.zulipchat.com'
349+ to : ' workflows-standalone'
350+ type : ' stream'
351+ topic : ${{ github.event.repository.name }}
352+ content : |
353+ :cross_mark: **${{ github.workflow }}** workflow failed
354+
355+ **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
356+ **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
348357
349358 # Define job to create a UMD bundle...
350359 umd :
@@ -509,14 +518,23 @@ jobs:
509518 echo "Pushing changes to $SLUG..."
510519 git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" umd
511520
512- # Send status to Slack channel if job fails:
513- - name : ' Send status to Slack channel in case of failure'
521+ # Send notification to Zulip if job fails:
522+ - name : ' Send notification to Zulip in case of failure'
514523 # Pin action to full length commit SHA
515- uses : 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
516- with :
517- status : ${{ job.status }}
518- channel : ' #npm-ci'
524+ uses : zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
519525 if : failure()
526+ with :
527+ api-key : ${{ secrets.ZULIP_API_KEY }}
528+ email : ' github-actions-bot@stdlib.zulipchat.com'
529+ organization-url : ' https://stdlib.zulipchat.com'
530+ to : ' workflows-standalone'
531+ type : ' stream'
532+ topic : ${{ github.event.repository.name }}
533+ content : |
534+ :cross_mark: **${{ github.workflow }}** workflow failed
535+
536+ **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
537+ **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
520538
521539 # Define job to create ES module build...
522540 esm :
@@ -687,14 +705,23 @@ jobs:
687705 echo "Pushing changes to $SLUG..."
688706 git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" esm
689707
690- # Send status to Slack channel if job fails:
691- - name : ' Send status to Slack channel in case of failure'
708+ # Send notification to Zulip if job fails:
709+ - name : ' Send notification to Zulip in case of failure'
692710 # Pin action to full length commit SHA
693- uses : 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
694- with :
695- status : ${{ job.status }}
696- channel : ' #npm-ci'
711+ uses : zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
697712 if : failure()
713+ with :
714+ api-key : ${{ secrets.ZULIP_API_KEY }}
715+ email : ' github-actions-bot@stdlib.zulipchat.com'
716+ organization-url : ' https://stdlib.zulipchat.com'
717+ to : ' workflows-standalone'
718+ type : ' stream'
719+ topic : ${{ github.event.repository.name }}
720+ content : |
721+ :cross_mark: **${{ github.workflow }}** workflow failed
722+
723+ **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
724+ **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
698725
699726 # Define job to create CLI branch:
700727 cli :
@@ -884,14 +911,23 @@ jobs:
884911 echo "Pushing changes to $SLUG..."
885912 git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" cli
886913
887- # Send status to Slack channel if job fails:
888- - name : ' Send status to Slack channel in case of failure'
914+ # Send notification to Zulip if job fails:
915+ - name : ' Send notification to Zulip in case of failure'
889916 # Pin action to full length commit SHA
890- uses : 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
891- with :
892- status : ${{ job.status }}
893- channel : ' #npm-ci'
917+ uses : zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
894918 if : failure()
919+ with :
920+ api-key : ${{ secrets.ZULIP_API_KEY }}
921+ email : ' github-actions-bot@stdlib.zulipchat.com'
922+ organization-url : ' https://stdlib.zulipchat.com'
923+ to : ' workflows-standalone'
924+ type : ' stream'
925+ topic : ${{ github.event.repository.name }}
926+ content : |
927+ :cross_mark: **${{ github.workflow }}** workflow failed
928+
929+ **Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
930+ **Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
895931
896932 # Define job that succeeds if all bundles were successfully built:
897933 create-tag-bundles :
0 commit comments