From 0ff037be59fc4a44ac393f82e07a1043420c6e97 Mon Sep 17 00:00:00 2001 From: Easy Date: Sat, 4 Feb 2023 18:28:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E5=AE=8C?= =?UTF-8?q?=E6=95=B4=E7=9A=84=E4=BE=8B=E5=AD=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c0704e..4389ef3 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,28 @@ with: format: YYYYMMDD-HH utcOffset: "+08:00" -- uses: easychen/github-action-server-chan@v1 +- uses: easychen/github-action-server-chan@v1.0.0 with: sendkey: ${{ secrets.sendkey }} title: "server酱Action更新啦 ${{ steps.current-time.outputs.formattedTime }}" desp: "可以为空。支持Markdown" -``` \ No newline at end of file +``` + +一个完整的例子: + +在仓库根目录新建 `.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: "我是一个小测试😝" +```