https://github.com/easychen/github-action-server-chan
https://github.com/easychen/github-action-server-chan
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/easychen/github-action-server-chan
- Owner: easychen
- License: mit
- Created: 2023-02-04T07:54:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-29T09:46:39.000Z (about 1 year ago)
- Last Synced: 2025-04-29T10:44:37.859Z (about 1 year ago)
- Language: TypeScript
- Size: 2.71 MB
- Stars: 28
- Watchers: 2
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# Server酱微信推送 GitHub Action
## 使用方法
1. 将 sendkey 添加到仓库的 Actions secrets 中,命名为 sendkey

2. 在 workflow 中使用,例子如下:
```yml
- uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDD-HH
utcOffset: "+08:00"
- uses: easychen/github-action-server-chan@v1.0.0
with:
sendkey: ${{ secrets.sendkey }}
title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}"
desp: "可以为空。支持Markdown"
```
一个完整的例子:
在仓库根目录新建 `.github/workflows/test.yml`,内容如下:
```yaml
name: 'build-test'
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: ServerChan · Server酱通知
uses: easychen/github-action-server-chan@v1.0.0
with:
sendkey: ${{ secrets.sendkey }}
title: "我是一个小测试😝"
```