This commit is contained in:
关红福
2019-09-11 11:56:17 +08:00
parent fcc3b78bbc
commit 6f94912a33
8 changed files with 154 additions and 12 deletions

View File

@@ -1,12 +1,21 @@
workflow "Send notification on push" {
on = "push"
resolves = [
"WeChat Work notification",
]
}
name: Send notification on push
on: [push]
jobs:
send-msg:
runs-on: ubuntu-latest
steps:
- name: WeChat Work notification by text
uses: chf007/action-wechat-work@master
env:
WECHAT_WORK_BOT_WEBHOOK: ${{secrets.WECHAT_WORK_BOT_WEBHOOK}}
with:
msgtype: text
content: 广州今日天气29度大部分多云降雨概率60%
mentioned_list:
- '@all'
- andreiguan
mentioned_mobile_list:
- '@all'
- 15002085767
action "WeChat Work notification" {
uses = "chf007/action-wechat-work@master"
secrets = ["WECHAT_WORK_WEBHOOK"]
args = "A new commit has been pushed to chf007/action-wechat-work."
}