Skip to content

funnyzak/jishida-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

即时达 ACTION

License Issues

即时达基于微信模板的一对多消息送达服务。

参数

  • key 即时达创建通道后会给每条通道分配的key。
  • head 消息头,长度1000以内。
  • body 消息体内容,长度1M以内,如果数据太长请用POST方式,切记body尽UrlEncode、支持markdown格式。

使用

发送固定信息。

steps:
  - name: JISHIDA Push.
    uses: funnyzak/jishida-action@master
    with:
      key: ${{ secrets.JISHIDA_PUSH_KEY }}
      head: hello
      body: world

读取 README.md 文件发送。

steps:
  - name: Checkout Source
    uses: actions/checkout@v1
  - id: GetReadMe
    run: |
      readme_content=`cat ./README.md`
      readme_content="${readme_content//'%'/'%25'}"
      readme_content="${readme_content//$'\n'/'%0A'}"
      readme_content="${readme_content//$'\r'/'%0D'}"
      echo "::set-output name=body::$readme_content"
  - name: JISHIDA PUSH
    uses: funnyzak/jishida-action@master
    with:
      key: ${{ secrets.JISHIDA_PUSH_KEY }}
      head: hello
      body: ${{ steps.GetReadMe.outputs.body }}

License

MIT License © 2021 funnyzak