Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 2.12 KB

README_zh.md

File metadata and controls

65 lines (50 loc) · 2.12 KB

Bark Action

English DocumentGitHub Marketplace

基于 shink/bark-action做了一点参数上的完善

一个通过 Finb/Bark 推送通知的 GitHub Action。

使用

name: 'Push Notifications via Bark'

on: [ push ]

jobs:
  notify:
    name: Notify
    runs-on: ubuntu-latest
    steps:
      - name: Push notification
        uses: Crownor/[email protected]
        with:
          key: ${{ secrets.KEY }}       # Your secret key, it is required
          host: ${{ secrets.HOST }}     # Your Bark host, the default is 'https://api.day.app'
          title: Message title
          body: Message body
          sound: alarm
          isArchive: 1
          url: https://baidu.com
          automaticallyCopy: 1
          copy: Content copied to clipboard

其中,只有 key 字段是必填的。

  • host: 自行搭建的 Bark 服务的地址
  • title: 标题(比内容字号粗一点)
  • body: 内容
  • sound: 推送铃声
  • isArchive: 是否保存到历史记录(1 为保存,其他值为不保存)
  • url: 将跳转到 url 的地址(发送时,URL 参数需要编码)
  • automaticallyCopy: 携带该参数时,将自动复制推送内容到剪贴板
  • copy: 携带该参数时,只复制该参数的值
  • group: 指定推送消息分组,可在历史记录中按分组查看推送
  • icon: 指定推送消息图标
  • level: 设置时效性通知

更多详情请查看 Finb/Bark

许可证

MIT