A GitHub Action that pushes notifications via Finb/Bark.
name: 'Push Notifications via Bark'
on: [ push ]
jobs:
notify:
name: Notify
runs-on: ubuntu-latest
steps:
- name: Push notification
uses: shink/bark-action@v2
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://yuanhaoji.com
automaticallyCopy: 1
copy: Content copied to clipboard
Among them, only the
key
field is required.
host
: Custom Bark server hostnametitle
: 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
For more information, please check out Finb/Bark.