GitHub Actions: 优化通知脚本,添加 HTTP 状态码输出以提升调试便利性

This commit is contained in:
2026-01-29 17:28:01 +08:00
parent 9360bd0131
commit 31f32bdb63

View File

@@ -47,7 +47,13 @@ jobs:
if [ -n "$NOTIFY_CURLS" ]; then
printf "%s\n" "$NOTIFY_CURLS" | while read -r line; do
if [ -n "$line" ]; then
eval "$line" || true
echo "Executing: $line"
if [[ "$line" == curl* ]]; then
eval "$line -w \"\\nHTTP Status: %{http_code}\\n\"" || true
else
eval "$line" || true
fi
echo ""
fi
done
fi