Compare commits

...

2 Commits

Author SHA1 Message Date
95beb54b32 ntfy
Some checks failed
Apply Kuberentes Configs / update-repo (push) Failing after 1s
Apply Kuberentes Configs / update-infrastructure (push) Successful in 3s
Apply Kuberentes Configs / notify-on-failure (push) Has been skipped
Manage Jellyfin Playlists / update-repo (push) Successful in 1s
Manage Jellyfin Playlists / run-python (push) Successful in 47s
Manage Jellyfin Playlists / notify-on-failure (push) Has been skipped
2026-03-05 09:39:59 -07:00
b6a8d96585 ntfy 2026-03-05 09:36:24 -07:00

View File

@@ -20,13 +20,12 @@ on:
required: false
type: string
default: ""
secrets:
NTFY_CHANNEL:
required: true
jobs:
send-notification:
runs-on: [home-server]
env:
NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }}
steps:
- name: Send ntfy notification
working-directory: /home/gitea-runner
@@ -38,7 +37,7 @@ jobs:
-H "Tags: ${{ inputs.tags }}" \
-H "Actions: view, View Logs, ${{ inputs.action_url }}" \
--data-binary "@-" \
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
"https://ntfy.sh/$NTFY_CHANNEL"
${{ inputs.message }}
EOF
else
@@ -46,7 +45,7 @@ jobs:
-H "Priority: ${{ inputs.priority }}" \
-H "Tags: ${{ inputs.tags }}" \
--data-binary "@-" \
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
"https://ntfy.sh/$NTFY_CHANNEL"
${{ inputs.message }}
EOF
fi