Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 49 additions & 55 deletions .github/workflows/notify-tsc-members-mention.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
#########
Expand All @@ -60,23 +60,22 @@ jobs:
SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}}
MSG_MINIMAL: true
#########
# Handling Mailchimp notifications
# Handling Kit.com notifications
#########
- name: Install deps
run: npm install
working-directory: ./.github/workflows/scripts/mailchimp
- name: Send email with MailChimp
working-directory: ./.github/workflows/scripts/kit
- name: Send email with Kit.com
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
TITLE: ${{ github.event.issue.title }}
HTML_URL: ${{ github.event.issue.html_url }}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail(process.env.HTML_URL, process.env.TITLE);
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
return sendEmail(process.env.HTML_URL, process.env.TITLE);

pull_request:
if: github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@asyncapi/tsc_members')
Expand All @@ -90,7 +89,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
#########
Expand All @@ -110,23 +109,22 @@ jobs:
SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}}
MSG_MINIMAL: true
#########
# Handling Mailchimp notifications
# Handling Kit.com notifications
#########
- name: Install deps
run: npm install
working-directory: ./.github/workflows/scripts/mailchimp
- name: Send email with MailChimp
working-directory: ./.github/workflows/scripts/kit
- name: Send email with Kit.com
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
TITLE: ${{ github.event.pull_request.title }}
HTML_URL: ${{ github.event.pull_request.html_url }}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail(process.env.HTML_URL, process.env.TITLE);
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
return sendEmail(process.env.HTML_URL, process.env.TITLE);

discussion:
if: github.event_name == 'discussion' && contains(github.event.discussion.body, '@asyncapi/tsc_members')
Expand All @@ -140,7 +138,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
#########
Expand All @@ -152,31 +150,30 @@ jobs:
id: discussionmarkdown
with:
markdown: "[${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n ${{github.event.discussion.body}}"
- name: Send info about pull request
- name: Send info about discussion
uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 # Using v2.3.2
env:
SLACK_WEBHOOK: ${{secrets.SLACK_TSC_MEMBERS_NOTIFY}}
SLACK_TITLE: 🆘 New discussion that requires TSC Members attention 🆘
SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}}
MSG_MINIMAL: true
#########
# Handling Mailchimp notifications
# Handling Kit.com notifications
#########
- name: Install deps
run: npm install
working-directory: ./.github/workflows/scripts/mailchimp
- name: Send email with MailChimp
working-directory: ./.github/workflows/scripts/kit
- name: Send email with Kit.com
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
TITLE: ${{ github.event.discussion.title }}
HTML_URL: ${{ github.event.discussion.html_url }}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail(process.env.HTML_URL, process.env.TITLE);
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
return sendEmail(process.env.HTML_URL, process.env.TITLE);

issue_comment:
if: ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') }}
Expand All @@ -190,7 +187,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
#########
Expand All @@ -210,23 +207,22 @@ jobs:
SLACK_MESSAGE: ${{steps.issuemarkdown.outputs.text}}
MSG_MINIMAL: true
#########
# Handling Mailchimp notifications
# Handling Kit.com notifications
#########
- name: Install deps
run: npm install
working-directory: ./.github/workflows/scripts/mailchimp
- name: Send email with MailChimp
working-directory: ./.github/workflows/scripts/kit
- name: Send email with Kit.com
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
TITLE: ${{ github.event.issue.title }}
HTML_URL: ${{ github.event.comment.html_url }}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail(process.env.HTML_URL, process.env.TITLE);
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
return sendEmail(process.env.HTML_URL, process.env.TITLE);

pr_comment:
if: github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members')
Expand All @@ -240,7 +236,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
#########
Expand All @@ -260,23 +256,22 @@ jobs:
SLACK_MESSAGE: ${{steps.prmarkdown.outputs.text}}
MSG_MINIMAL: true
#########
# Handling Mailchimp notifications
# Handling Kit.com notifications
#########
- name: Install deps
run: npm install
working-directory: ./.github/workflows/scripts/mailchimp
- name: Send email with MailChimp
working-directory: ./.github/workflows/scripts/kit
- name: Send email with Kit.com
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
TITLE: ${{ github.event.issue.title }}
HTML_URL: ${{ github.event.comment.html_url }}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail(process.env.HTML_URL, process.env.TITLE);
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
return sendEmail(process.env.HTML_URL, process.env.TITLE);

discussion_comment:
if: github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@asyncapi/tsc_members')
Expand All @@ -290,7 +285,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
#########
Expand All @@ -310,20 +305,19 @@ jobs:
SLACK_MESSAGE: ${{steps.discussionmarkdown.outputs.text}}
MSG_MINIMAL: true
#########
# Handling Mailchimp notifications
# Handling Kit.com notifications
#########
- name: Install deps
run: npm install
working-directory: ./.github/workflows/scripts/mailchimp
- name: Send email with MailChimp
working-directory: ./.github/workflows/scripts/kit
- name: Send email with Kit.com
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
KIT_API_KEY: ${{ secrets.KIT_API_KEY }}
KIT_TSC_TAG_ID: ${{ secrets.KIT_TSC_TAG_ID }}
TITLE: ${{ github.event.discussion.title }}
HTML_URL: ${{ github.event.comment.html_url }}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail(process.env.HTML_URL, process.env.TITLE);
const sendEmail = require('./.github/workflows/scripts/kit/index.js');
return sendEmail(process.env.HTML_URL, process.env.TITLE);
Loading
Loading