Fork from https://github.com/shink/bark-action, 添加了自定义host设置
An action for Finb/Bark
name: Bark Action
on: [push]
jobs:
job:
name: Push notification job
runs-on: ubuntu-latest
steps:
- name: Push notifications
uses: daolanfler/bark-action@v1
with:
host: ${{ secrets.BARK_HOST}} # If you deploy your own bark or else use default
key: ${{ secrets.KEY }} # Your secret key
title: Message title
body: Message body
sound: alarm
isArchive: 1
url: https://yuanhaoji.com
automaticallyCopy: 1
copy: Content copied to clipboard
其中,只有
key
字段是必填的
host
: bark 服务地址 默认 https://api.day.apptitle
: 标题(比内容字号粗一点)body
: 内容sound
: 推送铃声isArchive
: 是否保存到历史记录(1
为保存,其他值为不保存)url
: 将跳转到 url 的地址(发送时,URL 参数需要编码)automaticallyCopy
: 携带该参数时,将自动复制推送内容到剪贴板copy
: 携带该参数时,只复制该参数的值