Files
infrastructure/.gitea/workflows/notify-ntfy.yml
Alex Mickelson 36db78a8bd
Some checks failed
Apply Kuberentes Configs / update-repo (push) Successful in 0s
Apply Kuberentes Configs / update-infrastructure (push) Failing after 2s
Apply Kuberentes Configs / notify-on-failure (push) Failing after 0s
real fix
2026-02-18 20:38:27 -07:00

35 lines
829 B
YAML

name: Notify NTFY
on:
workflow_call:
inputs:
title:
required: true
type: string
message:
required: true
type: string
priority:
required: false
type: string
default: "default"
tags:
required: false
type: string
default: "warning"
jobs:
send-notification:
runs-on: [home-server]
steps:
- name: Send ntfy notification
working-directory: /home/gitea-runner
run: |
set -e
cat <<EOF | curl -f -H "Title: ${{ inputs.title }}" \
-H "Priority: ${{ inputs.priority }}" \
-H "Tags: ${{ inputs.tags }}" \
--data-binary "@-" \
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
${{ inputs.message }}
EOF