new notification updates
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) Successful in 0s

This commit is contained in:
2026-02-18 20:43:20 -07:00
parent 0fe208cce1
commit 02bbb0e425
2 changed files with 12 additions and 3 deletions

View File

@@ -16,6 +16,10 @@ on:
required: false
type: string
default: "warning"
action_url:
required: false
type: string
default: ""
secrets:
NTFY_CHANNEL:
required: true
@@ -28,9 +32,14 @@ jobs:
working-directory: /home/gitea-runner
run: |
set -e
ACTION_HEADER=""
if [ -n "${{ inputs.action_url }}" ]; then
ACTION_HEADER='-H "Actions: view, View Logs, ${{ inputs.action_url }}"'
fi
cat <<EOF | curl -f -H "Title: ${{ inputs.title }}" \
-H "Priority: ${{ inputs.priority }}" \
-H "Tags: ${{ inputs.tags }}" \
$ACTION_HEADER \
--data-binary "@-" \
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
${{ inputs.message }}