From 772c251ec5d6246434bb04651471592f1764a7af Mon Sep 17 00:00:00 2001 From: afc163 Date: Thu, 4 Aug 2022 11:00:42 +0800 Subject: [PATCH] Create disscustion-open-check.yml --- .github/workflows/disscustion-open-check.yml | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/disscustion-open-check.yml diff --git a/.github/workflows/disscustion-open-check.yml b/.github/workflows/disscustion-open-check.yml new file mode 100644 index 000000000000..1908b1acdc05 --- /dev/null +++ b/.github/workflows/disscustion-open-check.yml @@ -0,0 +1,23 @@ +name: Discussions + +on: + discussion: + types: [created] + +permissions: + contents: read + +jobs: + discussion-create: + permissions: + contents: read # for visiky/dingtalk-release-notify to get latest release + runs-on: ubuntu-latest + steps: + - name: send to dingtalk + uses: visiky/dingtalk-release-notify@main + with: + DING_TALK_TOKEN: ${{ secrets.DINGDING_BOT_TOKEN }} + notify_title: '🔥 @${{ github.event.discussion.user.login }} 创建了讨论:${{ github.event.discussion.title }}' + notify_body: '### 🔥 @${{ github.event.discussion.user.login }} 创建了讨论:[${{ github.event.discussion.title }}](${{ github.event.discussion.html_url }})
![](https://gw.alipayobjects.com/zos/antfincdn/5Cl2G7JjF/jieping2022-03-20%252520xiawu11.06.04.png)' + notify_footer: '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。' + at_all: false # whether to ding everybody