-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Discussions | ||
|
||
on: | ||
discussion: | ||
types: [created, edited, locked, unlocked] | ||
|
||
|
||
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 }} | ||
# ${{ secrets.DINGDING_BOT_COLLABORATOR_TOKEN }} | ||
DING_TALK_TOKEN: https://oapi.dingtalk.com/robot/send?access_token=dd88546da75f580089cb9a8849dec0537004583babe2e55b09daddf001b46d03 | ||
notify_title: '🔥 @${{ github.event.discussion.user.login }} 创建了讨论:${{ github.event.discussion.title }} ${{ github.event.discussion.html_url }}' | ||
notify_body: '### 🔥 @${{ github.event.discussion.user.login }} 创建了讨论 \n ### [${{ github.event.discussion.title }}](${{ github.event.discussion.html_url }}) <hr />' | ||
notify_footer: '> 💬 欢迎前往 GitHub 进行讨论,社区可能需要你的帮助。' | ||
at_all: false # whether to ding everybody |