Skip to content
message-circle

GitHub Action

Bark Action with custom host

v1 Latest version

Bark Action with custom host

message-circle

Bark Action with custom host

An action for bark with custom host supported

Installation

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

              

- name: Bark Action with custom host

uses: daolanfler/bark-action@v1

Learn more about this action in daolanfler/bark-action

Choose a version

Bark Action

Fork from https://github.com/shink/bark-action, add custom host support

An action for Finb/Bark

Chinese document | 中文文档

Usage

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.app
  • 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

License

MIT