Skip to content
message-circle

GitHub Action

Bark Actions

V3.0 Latest version

Bark Actions

message-circle

Bark Actions

An action for bark

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Bark Actions

uses: Crownor/[email protected]

Learn more about this action in Crownor/bark-action

Choose a version

Bark Action

中文文档GitHub Marketplace

Forked from shink/bark-action, add supports for more args in Bark

A GitHub Action that pushes notifications via Finb/Bark.

Usage

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://yuanhaoji.com
          automaticallyCopy: 1
          copy: Content copied to clipboard

Among them, only the key field is required.

  • host: Custom Bark server hostname
  • title: Message title (a bit thicker than the content font size)
  • body: Message content
  • sound: Push notification sound
  • isArchive: 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 clipboard
  • copy: When carrying this parameter, only the value of this parameter will be copied
  • group: Specify the group of push messages. Push messages can be viewed by group in the history.
  • icon: Specify push message icon
  • level: Set timely notifications

For more information, please check out Finb/Bark.

License

MIT