添加一个完整的例子
This commit is contained in:
23
README.md
23
README.md
@@ -16,9 +16,28 @@
|
|||||||
with:
|
with:
|
||||||
format: YYYYMMDD-HH
|
format: YYYYMMDD-HH
|
||||||
utcOffset: "+08:00"
|
utcOffset: "+08:00"
|
||||||
- uses: easychen/github-action-server-chan@v1
|
- uses: easychen/github-action-server-chan@v1.0.0
|
||||||
with:
|
with:
|
||||||
sendkey: ${{ secrets.sendkey }}
|
sendkey: ${{ secrets.sendkey }}
|
||||||
title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}"
|
title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}"
|
||||||
desp: "可以为空。支持Markdown"
|
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: "我是一个小测试😝"
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user