Skip to content

Annoucement Notify

Annoucement Notify #62

name: Annoucement Notify
on:
discussion:
types: [created]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send DingGroup1 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_1_TOKEN }}
secret: ${{ secrets.DING_GROUP_1_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup2 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_2_TOKEN }}
secret: ${{ secrets.DING_GROUP_2_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup3 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_3_TOKEN }}
secret: ${{ secrets.DING_GROUP_3_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup4 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_4_TOKEN }}
secret: ${{ secrets.DING_GROUP_4_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup5 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_5_TOKEN }}
secret: ${{ secrets.DING_GROUP_5_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup6 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_6_TOKEN }}
secret: ${{ secrets.DING_GROUP_6_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}
- name: Send DingGroup7 Anouncement Notify
uses: zcong1993/actions-ding@master
if: github.event.discussion.category.name == 'Announcements'
with:
dingToken: ${{ secrets.DING_GROUP_7_TOKEN }}
secret: ${{ secrets.DING_GROUP_7_SIGN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title": "Qiankun News",
"text": "# 新闻播报📢 [${{github.event.discussion.title}}](${{github.event.discussion.html_url}}) \n${{github.event.discussion.body}}",
}
}