mirror of
https://gitee.com/jack_whh/action-wechat-work.git
synced 2026-03-10 05:02:55 +08:00
init
This commit is contained in:
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user