Skip to content

emon100/Action-Serverchan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server-Chan

Send things to Server-chan using javascript.

为什么用这个Action?

这个 Action 使用的是 Github Actions 里自带的 Node.js 运行时,相比 Docker 类型运行时启动更快,可以节约您宝贵的 Action 运行时间。

该使用哪个版本?

v4开始支持Server酱turbo版.如使用老版Serverchan请使用v3之前版本。查看git tag来切换不同版本的文档.

输入

sendkey:

必要 用于推送消息的SCKEY,最佳实践是将这个值放置在仓库设置中的secrets变量里。

text:

必要 标题

desp:

可选 正文

channel:

可选 动态指定推送频道,参阅https://sct.ftqq.com/sendkey

示例

name: "units-test"
on:
  push:
    branches:
      - master
      - 'releases/*'

jobs:
  # test action works running from the graph  
  test:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Get date
      run: echo "::set-env name=REPORT_DATE::$(TZ=':Asia/Shanghai' date '+%Y-%m-%d %T')"
    - name: ServerChan Notify new stuffs to emon.
      uses: emon100/Action-Serverchan@v2
      if: steps.dataWork.outputs.changed == 'true'
      with:
        # sendkey
        sendkey: ${{ secrets.sendkey }} 
        # Message title
        text: ${{ env.REPORT_DATE }}
        # Message content
        desp: ok
        # channel
        chanel: '9|16'

About

A github action for sending messages to Serverchan.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •