Skip to content

Commit 3702d21

Browse files
committed
Auto-generated commit
1 parent 277f126 commit 3702d21

File tree

11 files changed

+209
-90
lines changed

11 files changed

+209
-90
lines changed

.github/workflows/productionize.yml

Lines changed: 60 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

.github/workflows/publish.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Define environment variables:
5555
env:
56-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
56+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
5757
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5858

5959
# Define the sequence of job steps...
@@ -216,14 +216,23 @@ jobs:
216216
run: |
217217
git reset --hard
218218
219-
# Send status to Slack channel if job fails:
220-
- name: 'Send status to Slack channel in case of failure'
219+
# Send notification to Zulip if job fails:
220+
- name: 'Send notification to Zulip in case of failure'
221221
# Pin action to full length commit SHA
222-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
223-
with:
224-
status: ${{ job.status }}
225-
channel: '#npm-ci'
222+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
226223
if: failure()
224+
with:
225+
api-key: ${{ secrets.ZULIP_API_KEY }}
226+
email: 'github-actions-bot@stdlib.zulipchat.com'
227+
organization-url: 'https://stdlib.zulipchat.com'
228+
to: 'workflows-standalone'
229+
type: 'stream'
230+
topic: ${{ github.event.repository.name }}
231+
content: |
232+
:cross_mark: **${{ github.workflow }}** workflow failed
233+
234+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
235+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
227236
228237
# Define job to cancel any running or queued workflow runs...
229238
cancel:

.github/workflows/publish_cli.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353

5454
# Define environment variables:
5555
env:
56-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
56+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
5757
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5858

5959
# Define the sequence of job steps...
@@ -139,14 +139,23 @@ jobs:
139139
run: |
140140
git reset --hard
141141
142-
# Send status to Slack channel if job fails:
143-
- name: 'Send status to Slack channel in case of failure'
142+
# Send notification to Zulip if job fails:
143+
- name: 'Send notification to Zulip in case of failure'
144144
# Pin action to full length commit SHA
145-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
146-
with:
147-
status: ${{ job.status }}
148-
channel: '#npm-ci'
145+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
149146
if: failure()
147+
with:
148+
api-key: ${{ secrets.ZULIP_API_KEY }}
149+
email: 'github-actions-bot@stdlib.zulipchat.com'
150+
organization-url: 'https://stdlib.zulipchat.com'
151+
to: 'workflows-standalone'
152+
type: 'stream'
153+
topic: ${{ github.event.repository.name }}
154+
content: |
155+
:cross_mark: **${{ github.workflow }}** workflow failed
156+
157+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
158+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
150159
151160
# Define job to cancel any running or queued workflow runs...
152161
cancel:

.github/workflows/test.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
# Define environment variables:
5353
env:
54-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
54+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
5555

5656
# Define the sequence of job steps...
5757
steps:
@@ -89,11 +89,20 @@ jobs:
8989
run: |
9090
npm test || npm test || npm test
9191
92-
# Send status to Slack channel if job fails:
93-
- name: 'Send status to Slack channel in case of failure'
92+
# Send notification to Zulip if job fails:
93+
- name: 'Send notification to Zulip in case of failure'
9494
# Pin action to full length commit SHA
95-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
96-
with:
97-
status: ${{ job.status }}
98-
channel: '#npm-ci'
95+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
9996
if: failure()
97+
with:
98+
api-key: ${{ secrets.ZULIP_API_KEY }}
99+
email: 'github-actions-bot@stdlib.zulipchat.com'
100+
organization-url: 'https://stdlib.zulipchat.com'
101+
to: 'workflows-standalone'
102+
type: 'stream'
103+
topic: ${{ github.event.repository.name }}
104+
content: |
105+
:cross_mark: **${{ github.workflow }}** workflow failed
106+
107+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
108+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})

.github/workflows/test_bundles.yml

Lines changed: 48 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Define environment variables:
4545
env:
46-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
46+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
4747

4848
# Define the sequence of job steps...
4949
steps:
@@ -88,14 +88,23 @@ jobs:
8888
})();"
8989
node --eval "$PLAYWRIGHT_SCRIPT" || exit $?
9090
91-
# Send notification to Slack channel if job fails:
92-
- name: 'Send status to Slack channel in case of failure'
91+
# Send notification to Zulip if job fails:
92+
- name: 'Send notification to Zulip in case of failure'
9393
# Pin action to full length commit SHA
94-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
95-
with:
96-
status: ${{ job.status }}
97-
channel: '#npm-ci'
94+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
9895
if: failure()
96+
with:
97+
api-key: ${{ secrets.ZULIP_API_KEY }}
98+
email: 'github-actions-bot@stdlib.zulipchat.com'
99+
organization-url: 'https://stdlib.zulipchat.com'
100+
to: 'workflows-standalone'
101+
type: 'stream'
102+
topic: ${{ github.event.repository.name }}
103+
content: |
104+
:cross_mark: **${{ github.workflow }}** workflow failed
105+
106+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
107+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
99108
100109
# Define job to test ES modules...
101110
test-esm:
@@ -108,7 +117,7 @@ jobs:
108117

109118
# Define environment variables:
110119
env:
111-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
120+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
112121

113122
# Define the sequence of job steps...
114123
steps:
@@ -132,14 +141,23 @@ jobs:
132141
run: |
133142
node --experimental-network-imports --eval "import( './index.mjs' )" || exit $?
134143
135-
# Send notification to Slack channel if job fails:
136-
- name: 'Send status to Slack channel in case of failure'
144+
# Send notification to Zulip if job fails:
145+
- name: 'Send notification to Zulip in case of failure'
137146
# Pin action to full length commit SHA
138-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
139-
with:
140-
status: ${{ job.status }}
141-
channel: '#npm-ci'
147+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
142148
if: failure()
149+
with:
150+
api-key: ${{ secrets.ZULIP_API_KEY }}
151+
email: 'github-actions-bot@stdlib.zulipchat.com'
152+
organization-url: 'https://stdlib.zulipchat.com'
153+
to: 'workflows-standalone'
154+
type: 'stream'
155+
topic: ${{ github.event.repository.name }}
156+
content: |
157+
:cross_mark: **${{ github.workflow }}** workflow failed
158+
159+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
160+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
143161
144162
# Define job to test Deno bundles...
145163
test-deno:
@@ -152,7 +170,7 @@ jobs:
152170

153171
# Define environment variables:
154172
env:
155-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
173+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
156174

157175
# Define the sequence of job steps...
158176
steps:
@@ -176,11 +194,20 @@ jobs:
176194
run: |
177195
deno eval "import main from './mod.js'" || exit $?
178196
179-
# Send notification to Slack channel if job fails:
180-
- name: 'Send status to Slack channel in case of failure'
197+
# Send notification to Zulip if job fails:
198+
- name: 'Send notification to Zulip in case of failure'
181199
# Pin action to full length commit SHA
182-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
183-
with:
184-
status: ${{ job.status }}
185-
channel: '#npm-ci'
200+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
186201
if: failure()
202+
with:
203+
api-key: ${{ secrets.ZULIP_API_KEY }}
204+
email: 'github-actions-bot@stdlib.zulipchat.com'
205+
organization-url: 'https://stdlib.zulipchat.com'
206+
to: 'workflows-standalone'
207+
type: 'stream'
208+
topic: ${{ github.event.repository.name }}
209+
content: |
210+
:cross_mark: **${{ github.workflow }}** workflow failed
211+
212+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
213+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})

.github/workflows/test_coverage.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
# Define environment variables:
4545
env:
46-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
46+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
4747

4848
# Define the sequence of job steps...
4949
steps:
@@ -113,14 +113,23 @@ jobs:
113113
echo "${{ steps.extract-coverage.outputs.table }}" >> $GITHUB_STEP_SUMMARY
114114
echo "" >> $GITHUB_STEP_SUMMARY
115115
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'
118118
# 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
123120
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 }})
124133
125134
# Send data to events server:
126135
- name: 'Post data'

0 commit comments

Comments
 (0)