Skip to content
message-circle

GitHub Action

Bark Action

v2 Latest version

Bark Action

message-circle

Bark Action

An action for bark

Installation

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

              

- name: Bark Action

uses: shink/bark-action@v2

Learn more about this action in shink/bark-action

Choose a version

Bark Action

中文文档GitHub Marketplace

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: 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 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

For more information, please check out Finb/Bark.

License

MIT