Skip to content

Commit f5365fb

Browse files
committed
Auto-generated commit
1 parent 816f48e commit f5365fb

File tree

13 files changed

+305
-118
lines changed

13 files changed

+305
-118
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/productionize.yml

Lines changed: 45 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,23 @@ jobs:
338338
echo "Pushing changes to $SLUG..."
339339
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" deno
340340
341-
# Send status to Slack channel if job fails:
342-
- name: 'Send status to Slack channel in case of failure'
341+
# Send notification to Zulip if job fails:
342+
- name: 'Send notification to Zulip in case of failure'
343343
# Pin action to full length commit SHA
344-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
345-
with:
346-
status: ${{ job.status }}
347-
channel: '#npm-ci'
344+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
348345
if: failure()
346+
with:
347+
api-key: ${{ secrets.ZULIP_API_KEY }}
348+
email: 'github-actions-bot@stdlib.zulipchat.com'
349+
organization-url: 'https://stdlib.zulipchat.com'
350+
to: 'workflows-standalone'
351+
type: 'stream'
352+
topic: ${{ github.event.repository.name }}
353+
content: |
354+
:cross_mark: **${{ github.workflow }}** workflow failed
355+
356+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
357+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
349358
350359
# Define job to create a UMD bundle...
351360
umd:
@@ -511,14 +520,23 @@ jobs:
511520
echo "Pushing changes to $SLUG..."
512521
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" umd
513522
514-
# Send status to Slack channel if job fails:
515-
- name: 'Send status to Slack channel in case of failure'
523+
# Send notification to Zulip if job fails:
524+
- name: 'Send notification to Zulip in case of failure'
516525
# Pin action to full length commit SHA
517-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
518-
with:
519-
status: ${{ job.status }}
520-
channel: '#npm-ci'
526+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
521527
if: failure()
528+
with:
529+
api-key: ${{ secrets.ZULIP_API_KEY }}
530+
email: 'github-actions-bot@stdlib.zulipchat.com'
531+
organization-url: 'https://stdlib.zulipchat.com'
532+
to: 'workflows-standalone'
533+
type: 'stream'
534+
topic: ${{ github.event.repository.name }}
535+
content: |
536+
:cross_mark: **${{ github.workflow }}** workflow failed
537+
538+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
539+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
522540
523541
# Define job to create ES module build...
524542
esm:
@@ -690,14 +708,23 @@ jobs:
690708
echo "Pushing changes to $SLUG..."
691709
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$SLUG.git" esm
692710
693-
# Send status to Slack channel if job fails:
694-
- name: 'Send status to Slack channel in case of failure'
711+
# Send notification to Zulip if job fails:
712+
- name: 'Send notification to Zulip in case of failure'
695713
# Pin action to full length commit SHA
696-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
697-
with:
698-
status: ${{ job.status }}
699-
channel: '#npm-ci'
714+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
700715
if: failure()
716+
with:
717+
api-key: ${{ secrets.ZULIP_API_KEY }}
718+
email: 'github-actions-bot@stdlib.zulipchat.com'
719+
organization-url: 'https://stdlib.zulipchat.com'
720+
to: 'workflows-standalone'
721+
type: 'stream'
722+
topic: ${{ github.event.repository.name }}
723+
content: |
724+
:cross_mark: **${{ github.workflow }}** workflow failed
725+
726+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
727+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
701728
702729
# Define job that succeeds if all bundles were successfully built:
703730
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/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'

.github/workflows/test_install.yml

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

4949
# Define environment variables:
5050
env:
51-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
51+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
5252

5353
# Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule:
5454
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
@@ -75,11 +75,20 @@ jobs:
7575
npm install --only=prod || npm install --only=prod || npm install --only=prod
7676
timeout-minutes: 15
7777

78-
# Send Slack notification if job fails:
79-
- name: 'Send notification to Slack in case of failure'
78+
# Send notification to Zulip if job fails:
79+
- name: 'Send notification to Zulip in case of failure'
8080
# Pin action to full length commit SHA
81-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
82-
with:
83-
status: ${{ job.status }}
84-
channel: '#npm-ci'
81+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
8582
if: failure()
83+
with:
84+
api-key: ${{ secrets.ZULIP_API_KEY }}
85+
email: 'github-actions-bot@stdlib.zulipchat.com'
86+
organization-url: 'https://stdlib.zulipchat.com'
87+
to: 'workflows-standalone'
88+
type: 'stream'
89+
topic: ${{ github.event.repository.name }}
90+
content: |
91+
:cross_mark: **${{ github.workflow }}** workflow failed
92+
93+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
94+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})

.github/workflows/test_published_package.yml

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

4646
# Define environment variables:
4747
env:
48-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
48+
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }}
4949

5050
# Run workflow job if `publish` workflow run is successful or when the workflow is manually triggered or on a schedule:
5151
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' }}
@@ -96,10 +96,20 @@ jobs:
9696
# Run the example:
9797
node index.js
9898
99-
# Send Slack notification if job fails:
100-
- name: 'Send notification to Slack in case of failure'
101-
uses: 8398a7/action-slack@28ba43ae48961b90635b50953d216767a6bea486 # v3.16.2
102-
with:
103-
status: ${{ job.status }}
104-
channel: '#npm-ci'
99+
# Send notification to Zulip if job fails:
100+
- name: 'Send notification to Zulip in case of failure'
101+
# Pin action to full length commit SHA
102+
uses: zulip/github-actions-zulip/send-message@e4c8f27c732ba9bd98ac6be0583096dea82feea5 # v1.0.2
105103
if: failure()
104+
with:
105+
api-key: ${{ secrets.ZULIP_API_KEY }}
106+
email: 'github-actions-bot@stdlib.zulipchat.com'
107+
organization-url: 'https://stdlib.zulipchat.com'
108+
to: 'workflows-standalone'
109+
type: 'stream'
110+
topic: ${{ github.event.repository.name }}
111+
content: |
112+
:cross_mark: **${{ github.workflow }}** workflow failed
113+
114+
**Repository:** [${{ github.repository }}](${{ github.server_url }}/${{ github.repository }})
115+
**Run:** [View workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})

0 commit comments

Comments
 (0)