@@ -66,10 +66,11 @@ jobs:
6666 CALENDAR_ID : ${{ secrets.CALENDAR_ID }}
6767 CALENDAR_SERVICE_ACCOUNT : ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
6868 MAILCHIMP_API_KEY : ${{ secrets.MAILCHIMP_API_KEY }}
69+ TITLE : ${{github.event.issue.title}}
6970 with :
7071 script : |
7172 const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
72- sendEmail('${{github.event.issue.html_url}}', '${{github.event.issue.title}} ');
73+ sendEmail('${{github.event.issue.html_url}}', '$TITLE ');
7374
7475 pull_request :
7576 if : github.event_name == 'pull_request_target' && contains(github.event.pull_request.body, '@asyncapi/tsc_members')
@@ -111,10 +112,11 @@ jobs:
111112 CALENDAR_ID : ${{ secrets.CALENDAR_ID }}
112113 CALENDAR_SERVICE_ACCOUNT : ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
113114 MAILCHIMP_API_KEY : ${{ secrets.MAILCHIMP_API_KEY }}
115+ TITLE : ${{github.event.pull_request.title}}
114116 with :
115117 script : |
116118 const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
117- sendEmail('${{github.event.pull_request.html_url}}', '${{github.event.pull_request.title}} ');
119+ sendEmail('${{github.event.pull_request.html_url}}', '$TITLE ');
118120
119121 discussion :
120122 if : github.event_name == 'discussion' && contains(github.event.discussion.body, '@asyncapi/tsc_members')
@@ -156,10 +158,11 @@ jobs:
156158 CALENDAR_ID : ${{ secrets.CALENDAR_ID }}
157159 CALENDAR_SERVICE_ACCOUNT : ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
158160 MAILCHIMP_API_KEY : ${{ secrets.MAILCHIMP_API_KEY }}
161+ TITLE : ${{github.event.discussion.title}}
159162 with :
160163 script : |
161164 const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
162- sendEmail('${{github.event.discussion.html_url}}', '${{github.event.discussion.title}} ');
165+ sendEmail('${{github.event.discussion.html_url}}', '$TITLE ');
163166
164167 issue_comment :
165168 if : ${{ github.event_name == 'issue_comment' && !github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members') }}
@@ -201,10 +204,11 @@ jobs:
201204 CALENDAR_ID : ${{ secrets.CALENDAR_ID }}
202205 CALENDAR_SERVICE_ACCOUNT : ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
203206 MAILCHIMP_API_KEY : ${{ secrets.MAILCHIMP_API_KEY }}
207+ TITLE : ${{github.event.issue.title}}
204208 with :
205209 script : |
206210 const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
207- sendEmail('${{github.event.comment.html_url}}', '${{github.event.issue.title}} ');
211+ sendEmail('${{github.event.comment.html_url}}', '$TITLE ');
208212
209213 pr_comment :
210214 if : github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@asyncapi/tsc_members')
@@ -246,10 +250,11 @@ jobs:
246250 CALENDAR_ID : ${{ secrets.CALENDAR_ID }}
247251 CALENDAR_SERVICE_ACCOUNT : ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
248252 MAILCHIMP_API_KEY : ${{ secrets.MAILCHIMP_API_KEY }}
253+ TITLE : ${{github.event.issue.title}}
249254 with :
250255 script : |
251256 const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
252- sendEmail('${{github.event.comment.html_url}}', '${{github.event.issue.title}} ');
257+ sendEmail('${{github.event.comment.html_url}}', '$TITLE ');
253258
254259 discussion_comment :
255260 if : github.event_name == 'discussion_comment' && contains(github.event.comment.body, '@asyncapi/tsc_members')
@@ -291,7 +296,8 @@ jobs:
291296 CALENDAR_ID : ${{ secrets.CALENDAR_ID }}
292297 CALENDAR_SERVICE_ACCOUNT : ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
293298 MAILCHIMP_API_KEY : ${{ secrets.MAILCHIMP_API_KEY }}
299+ TITLE : ${{github.event.discussion.title}}
294300 with :
295301 script : |
296302 const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
297- sendEmail('${{github.event.comment.html_url}}', '${{github.event.discussion.title}} ');
303+ sendEmail('${{github.event.comment.html_url}}', '$TITLE ');
0 commit comments