Woodpecker plugin to send notifications to a ntfy.sh instance
Find a file
Alexander Wühr 6886ff5cf8
Some checks failed
ci/woodpecker/push/publish_next Pipeline failed
Update urfave/cli
2024-08-05 14:03:27 +02:00
.woodpecker revert 15168662b9 2024-08-05 11:51:36 +00:00
plugin Enable calls 2023-05-19 11:37:08 +02:00
tools Update author key in tools/docs.sh 2024-01-14 19:45:32 +00:00
Dockerfile Update go version in Dockerfile 2024-02-20 10:43:48 +01:00
docs.md Update example pipeline step 2024-02-20 17:38:58 +01:00
go.mod Update urfave/cli 2024-08-05 14:03:27 +02:00
go.sum Update urfave/cli 2024-08-05 14:03:27 +02:00
LICENSE Initial commit 2023-05-04 14:16:52 +02:00
main.go Let docs.md be generated 2023-05-22 11:42:01 +02:00
README.md Update example pipeline step 2024-02-20 17:38:58 +01:00

status-badge

Get it on Codeberg

woodpecker-ntfy

A Woodpecker plugin to send notifications to a ntfy.sh instance.

Configuration

Name Description Default
message Notification Body none
title Notification Title 1 none
priority Notification Priority 2 none
url Url (including the topic) to send the notification to https://ntfy.sh/woodpecker-ntfy
token Authentication token for write-protected topics 3 none
actions Action Buttons 4 none
attach Url for file to be attached 5 none
call Phone number to send voice message to 6 (ntfy >= 2.5.0) none
click Click Action 7 CI_BUILD_LINK
email E-mail to which the message is to be forwarded 8 none
icon Message Icon 9 CI_COMMIT_AUTHOR_AVATAR
tags Tags and Emojis 10 none

Example

steps:
    - name: ntfy
      image: codeberg.org/l-x/woodpecker-ntfy
      when:
        - event: push
      settings:
          url: https://custom.ntfy.instance/topic-to-notify
          token:
              from_secret: your-super-secret-ntfy-access-token
          title: Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH}
          priority: urgent
          actions: "view, Open portal, https://home.nest.com/, clear=true; http, Turn down, https://api.nest.com/, body='{\"temperature\": 65}'"
          click: https://where.to.go
          icon: https://woodpecker-ci.org/img/logo.svg
          tags: robot,${CI_REPO_NAME}
          message: ${CI_COMMIT_MESSAGE}