Skip to content

daolanfler/bark-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An action for Bark.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%