2024-07-09 10:38:00 +08:00
2023-02-04 15:54:36 +08:00
new
2023-02-04 17:19:14 +08:00
2023-02-04 17:47:32 +08:00
2023-02-04 16:59:24 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 16:33:50 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 17:59:03 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 15:54:36 +08:00
2023-02-04 15:54:36 +08:00
2024-01-16 17:37:30 +08:00
2023-02-04 17:34:29 +08:00
2023-02-04 15:54:36 +08:00

Server酱微信推送 GitHub Action

使用方法

  1. 将 sendkey 添加到仓库的 Actions secrets 中,命名为 sendkey

  1. 在 workflow 中使用,例子如下:
- 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,内容如下:

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: "我是一个小测试😝"
Description
No description provided
Readme 1.1 MiB
Languages
TypeScript 78.1%
PHP 14.7%
JavaScript 7.2%