From e15f4ad2cbc850e8cf859be5f3b4a95227eba6f0 Mon Sep 17 00:00:00 2001 From: Ondrej Belusky Date: Wed, 22 Jul 2026 14:13:45 +0200 Subject: [PATCH] Initial: ntfy Notify composite action --- action.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..5bbb692 --- /dev/null +++ b/action.yml @@ -0,0 +1,33 @@ +name: 'ntfy Notify' +description: 'Send a ntfy notification for CI success or failure' + +inputs: + ntfy_url: + description: 'ntfy server URL' + default: 'https://ntfy.zlymeda.dynu.net' + required: false + ntfy_topic: + description: 'ntfy topic' + required: true + status: + description: 'Notification status: success or failure' + required: true + message: + description: 'Notification message body' + default: '' + +runs: + using: composite + steps: + - name: ntfy-notify + uses: niniyas/ntfy-action@master + with: + url: ${{ inputs.ntfy_url }} + topic: ${{ inputs.ntfy_topic }} + priority: ${{ inputs.status == 'failure' && '5' || '3' }} + tags: >- + ${{ inputs.status == 'failure' && + 'flying_saucer,warning,🚨,🛠️,action,failed' || + 'rocket,white_check_mark,🎉,docker' }} + details: ${{ inputs.message }} + actions: 'default'