Add always-on ntfy completion notify rule for codex topic.

This commit is contained in:
2026-10-27 20:28:42 +08:00
parent 0679d84500
commit 0c5281b631
2 changed files with 51 additions and 0 deletions

17
scripts/ntfy.ps1 Normal file
View File

@@ -0,0 +1,17 @@
# Quick ntfy helper for this repo
# Usage:
# .\scripts\ntfy.ps1 "标题" "正文"
# .\scripts\ntfy.ps1 -Title "ok" -Message "done" -Tags "white_check_mark"
param(
[Parameter(Position = 0)]
[string]$Title = "serverinfotest",
[Parameter(Position = 1)]
[string]$Message = "done",
[string]$Tags = "white_check_mark",
[string]$TopicUrl = "https://ntfy.dsx2020.com/codex"
)
$ErrorActionPreference = "Stop"
curl.exe -sS -H "Title: $Title" -H "Tags: $Tags" -d $Message $TopicUrl
Write-Host ""