Fork from https://github.com/shink/bark-action, add custom host support
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
Among them, only the
key
parameter is required
host
: bark service host, default is https://api.day.apptitle
: Message title (a bit thicker than the content font size)body
: Message contentsound
: Push notification soundisArchive
: Whether to save to the historical record (1
means save)url
: The address that will be redirected to the url (when sending, URL parameters need to be encoded)automaticallyCopy
: When this parameter is carried, the content will be automatically copied to the clipboardcopy
: When carrying this parameter, only the value of this parameter will be copied