ServerChan Action(Server 酱) 微信消息通知插件
基于 ServerChan(Server 酱) 封装的微信消息通知插件
可用于持续集成的通知等.
我的使用场景有 Hexo 的自动构建成功通知
等, (目前别的还没加上)...
项目地址: https://github.com/yakumioto/serverchan-action
号外, 之前也实现过 Drone CI 的 Server 酱插件, 地址: https://github.com/yakumioto/drone-serverchan
明文 key 配置, 适用于私有仓库
---
name: serverchan-action
on: [push]
jobs:
serverchan:
name: Server chan
runs-on: ubuntu-latest
steps:
- name: Sending message
uses: yakumioto/serverchan-action@v1
with:
key: {SCKEY}
text: {消息标题}
desp: {消息内容 支持 MarkDown}
密文 key 配置, 适用于公共仓库.
---
name: serverchan-action
on: [push]
jobs:
serverchan:
name: Server chan
runs-on: ubuntu-latest
steps:
- name: Sending message
uses: yakumioto/serverchan-action@v1
with:
key: ${{ secrets.sckey }}
text: {消息标题}
desp: {消息内容 支持 MarkDown}
1
0312birdzhang 2020-01-06 08:40:39 +08:00 via iPhone 1
一条 curl 不就搞定了?
|
2
YakuMioto OP @0312birdzhang 有 action 为什么不用呢,虽然你说的也没错,不过写 curl 不优雅…
|
3
liyvhg 2020-01-06 08:50:16 +08:00 via Android
似乎前排活捉了一个 server 酱大佬🙊😸
|
5
0312birdzhang 2020-01-06 09:28:59 +08:00
@YakuMioto #2 不认同,简单即美。
|
6
sneezry 2020-01-06 09:30:01 +08:00 via iPhone
那个,违反 GitHub 用户协议了……
> Additionally, GitHub Actions should not be used for: Serverless computing https://help.github.com/en/actions/automating-your-workflow-with-github-actions/about-github-actions 被 GitHub 发现后会被关小黑屋: > In order to prevent violations of these limitations and abuse of GitHub Actions, GitHub may monitor your use of GitHub Actions. Misuse of GitHub Actions may result in termination of jobs, or restrictions in your ability to use GitHub Actions. |
7
sneezry 2020-01-06 09:31:56 +08:00 via iPhone
不好意思,我没认真读题,发送和 CI/CD 部署相关的通知不算滥用~
|
8
YakuMioto OP @0312birdzhang 哈哈, 那就看使用习惯了, 有人喜欢用 uses, 有人喜欢用 run.
|