Skip to content

Commit 1a5b839

Browse files
authored
ci: update of files from global .github repo (#363)
1 parent 17cae11 commit 1a5b839

8 files changed

Lines changed: 670 additions & 1099 deletions

File tree

.github/workflows/notify-tsc-members-mention.yml

Lines changed: 49 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Setup Node.js
4141
uses: actions/setup-node@v4
4242
with:
43-
node-version: 16
43+
node-version: 20
4444
cache: 'npm'
4545
cache-dependency-path: '**/package-lock.json'
4646
#########
@@ -60,23 +60,22 @@ jobs:
6060
SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}}
6161
MSG_MINIMAL: true
6262
#########
63-
# Handling Mailchimp notifications
63+
# Handling Kit.com notifications
6464
#########
6565
- name: Install deps
6666
run: npm install
67-
working-directory: ./.github/workflows/scripts/mailchimp
68-
- name: Send email with MailChimp
67+
working-directory: ./.github/workflows/scripts/kit
68+
- name: Send email with Kit.com
6969
uses: actions/github-script@v7
7070
env:
71-
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
72-
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
73-
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
71+
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
72+
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
7473
TITLE: ${{ github.event.issue.title }}
7574
HTML_URL: ${{ github.event.issue.html_url }}
7675
with:
7776
script: |
78-
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
79-
sendEmail(process.env.HTML_URL, process.env.TITLE);
77+
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
78+
return sendEmail(process.env.HTML_URL, process.env.TITLE);
8079
8180
pull_request:
8281
if: github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@asyncapi/tsc_members')
@@ -90,7 +89,7 @@ jobs:
9089
- name: Setup Node.js
9190
uses: actions/setup-node@v4
9291
with:
93-
node-version: 16
92+
node-version: 20
9493
cache: 'npm'
9594
cache-dependency-path: '**/package-lock.json'
9695
#########
@@ -110,23 +109,22 @@ jobs:
110109
SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}}
111110
MSG_MINIMAL: true
112111
#########
113-
# Handling Mailchimp notifications
112+
# Handling Kit.com notifications
114113
#########
115114
- name: Install deps
116115
run: npm install
117-
working-directory: ./.github/workflows/scripts/mailchimp
118-
- name: Send email with MailChimp
116+
working-directory: ./.github/workflows/scripts/kit
117+
- name: Send email with Kit.com
119118
uses: actions/github-script@v7
120119
env:
121-
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
122-
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
123-
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
120+
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
121+
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
124122
TITLE: ${{ github.event.pull_request.title }}
125123
HTML_URL: ${{ github.event.pull_request.html_url }}
126124
with:
127125
script: |
128-
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
129-
sendEmail(process.env.HTML_URL, process.env.TITLE);
126+
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
127+
return sendEmail(process.env.HTML_URL, process.env.TITLE);
130128
131129
discussion:
132130
if: github.event_name == 'discussion' && contains(github.event.discussion.body, '@asyncapi/tsc_members')
@@ -140,7 +138,7 @@ jobs:
140138
- name: Setup Node.js
141139
uses: actions/setup-node@v4
142140
with:
143-
node-version: 16
141+
node-version: 20
144142
cache: 'npm'
145143
cache-dependency-path: '**/package-lock.json'
146144
#########
@@ -152,31 +150,30 @@ jobs:
152150
id: discussionmarkdown
153151
with:
154152
markdown: "[${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n ${{github.event.discussion.body}}"
155-
- name: Send info about pull request
153+
- name: Send info about discussion
156154
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # Using v2.3.2
157155
env:
158156
SLACK_WEBHOOK: ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
159157
SLACK_TITLE: 🆘 New discussion that requires TSC Members attention 🆘
160158
SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}}
161159
MSG_MINIMAL: true
162160
#########
163-
# Handling Mailchimp notifications
161+
# Handling Kit.com notifications
164162
#########
165163
- name: Install deps
166164
run: npm install
167-
working-directory: ./.github/workflows/scripts/mailchimp
168-
- name: Send email with MailChimp
165+
working-directory: ./.github/workflows/scripts/kit
166+
- name: Send email with Kit.com
169167
uses: actions/github-script@v7
170168
env:
171-
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
172-
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
173-
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
169+
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
170+
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
174171
TITLE: ${{ github.event.discussion.title }}
175172
HTML_URL: ${{ github.event.discussion.html_url }}
176173
with:
177174
script: |
178-
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
179-
sendEmail(process.env.HTML_URL, process.env.TITLE);
175+
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
176+
return sendEmail(process.env.HTML_URL, process.env.TITLE);
180177
181178
issue_comment:
182179
if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') }}
@@ -190,7 +187,7 @@ jobs:
190187
- name: Setup Node.js
191188
uses: actions/setup-node@v4
192189
with:
193-
node-version: 16
190+
node-version: 20
194191
cache: 'npm'
195192
cache-dependency-path: '**/package-lock.json'
196193
#########
@@ -210,23 +207,22 @@ jobs:
210207
SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}}
211208
MSG_MINIMAL: true
212209
#########
213-
# Handling Mailchimp notifications
210+
# Handling Kit.com notifications
214211
#########
215212
- name: Install deps
216213
run: npm install
217-
working-directory: ./.github/workflows/scripts/mailchimp
218-
- name: Send email with MailChimp
214+
working-directory: ./.github/workflows/scripts/kit
215+
- name: Send email with Kit.com
219216
uses: actions/github-script@v7
220217
env:
221-
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
222-
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
223-
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
218+
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
219+
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
224220
TITLE: ${{ github.event.issue.title }}
225221
HTML_URL: ${{ github.event.comment.html_url }}
226222
with:
227223
script: |
228-
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
229-
sendEmail(process.env.HTML_URL, process.env.TITLE);
224+
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
225+
return sendEmail(process.env.HTML_URL, process.env.TITLE);
230226
231227
pr_comment:
232228
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members')
@@ -240,7 +236,7 @@ jobs:
240236
- name: Setup Node.js
241237
uses: actions/setup-node@v4
242238
with:
243-
node-version: 16
239+
node-version: 20
244240
cache: 'npm'
245241
cache-dependency-path: '**/package-lock.json'
246242
#########
@@ -260,23 +256,22 @@ jobs:
260256
SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}}
261257
MSG_MINIMAL: true
262258
#########
263-
# Handling Mailchimp notifications
259+
# Handling Kit.com notifications
264260
#########
265261
- name: Install deps
266262
run: npm install
267-
working-directory: ./.github/workflows/scripts/mailchimp
268-
- name: Send email with MailChimp
263+
working-directory: ./.github/workflows/scripts/kit
264+
- name: Send email with Kit.com
269265
uses: actions/github-script@v7
270266
env:
271-
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
272-
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
273-
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
267+
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
268+
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
274269
TITLE: ${{ github.event.issue.title }}
275270
HTML_URL: ${{ github.event.comment.html_url }}
276271
with:
277272
script: |
278-
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
279-
sendEmail(process.env.HTML_URL, process.env.TITLE);
273+
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
274+
return sendEmail(process.env.HTML_URL, process.env.TITLE);
280275
281276
discussion_comment:
282277
if: github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@asyncapi/tsc_members')
@@ -290,7 +285,7 @@ jobs:
290285
- name: Setup Node.js
291286
uses: actions/setup-node@v4
292287
with:
293-
node-version: 16
288+
node-version: 20
294289
cache: 'npm'
295290
cache-dependency-path: '**/package-lock.json'
296291
#########
@@ -310,20 +305,19 @@ jobs:
310305
SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}}
311306
MSG_MINIMAL: true
312307
#########
313-
# Handling Mailchimp notifications
308+
# Handling Kit.com notifications
314309
#########
315310
- name: Install deps
316311
run: npm install
317-
working-directory: ./.github/workflows/scripts/mailchimp
318-
- name: Send email with MailChimp
312+
working-directory: ./.github/workflows/scripts/kit
313+
- name: Send email with Kit.com
319314
uses: actions/github-script@v7
320315
env:
321-
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
322-
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
323-
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
316+
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
317+
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
324318
TITLE: ${{ github.event.discussion.title }}
325319
HTML_URL: ${{ github.event.comment.html_url }}
326320
with:
327321
script: |
328-
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
329-
sendEmail(process.env.HTML_URL, process.env.TITLE);
322+
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
323+
return sendEmail(process.env.HTML_URL, process.env.TITLE);

0 commit comments

Comments
 (0)