https://github.com/fifsky/wechat-work-action
🦄Wechat-Work robot for github action
https://github.com/fifsky/wechat-work-action
github-actions robot wechat-work
Last synced: about 2 months ago
JSON representation
🦄Wechat-Work robot for github action
- Host: GitHub
- URL: https://github.com/fifsky/wechat-work-action
- Owner: fifsky
- License: mit
- Created: 2019-09-11T06:33:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T01:58:46.000Z (over 5 years ago)
- Last Synced: 2025-03-26T20:12:50.135Z (2 months ago)
- Topics: github-actions, robot, wechat-work
- Language: JavaScript
- Homepage:
- Size: 123 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wechat-Work robot action

Github action for sending Wechat-Work robot messages
## ✨ Example Usage
```yml
- name: wechat-work robot message
uses: fifsky/wechat-work-action@master
with:
url: ${{ secrets.WECHATWORK_WEBHOOK}}
type: markdown
content: |
# Tips
## Hello
> from github action message
> ^_^
- repository: ${{ github.repository }}
- committer: ${{ github.actor }}
- compare: [view](${{ github.event.compare }})
- job status: ${{ job.status }}
```🔐 Set your secrets here: `https://github.com/USERNAME/REPO/settings/secrets`.
Contexts and expression syntax for GitHub Actions, here: https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions#github-context
**Result**

## Options
| option | type | required | default | description |
| --- | --- | --- | --- | --- |
| url | string | Yes | none | The full address of webhook: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxx |
| type | string | No | text | message type,support (text,markdown,custom) |
| content | string | Yes | none | Message content, text or markdown or json string |
| at | string | No | none | At user,Use commas to separate, for example: 13812345678,13898754321 or all |if type is custom, content is wecaht-work api json request body,for example
> content: {"msgtype": "text", "text": {"content": "我就是我, 是不一样的烟火"}}