opt: fix ntfy

This commit is contained in:
2025-12-30 14:39:46 +07:00
parent 4a94742273
commit fdcac755aa

View File

@@ -44,16 +44,6 @@ send_ntfy() {
fi
echo ""
# Build rich message with metadata
local rich_message=$(cat <<EOF
$MESSAGE
📦 Repository: ${GITHUB_REPOSITORY:-N/A}
🔢 Run ID: ${GITHUB_RUN_ID:-N/A}
⏰ Time: $(date -u +"%Y-%m-%d %H:%M:%S UTC")
EOF
)
echo -e " ${YELLOW}${NC} Sending push notification..."
echo -e " ${YELLOW}${NC} Target: $NTFY_URL/$NTFY_TOPIC"
@@ -64,8 +54,8 @@ EOF
-H "Priority: $priority" \
-H "Tags: $tags" \
-H "Click: $click_url" \
-H "Actions: view, Open Logs, $click_url, clear=true" \
-d "$rich_message" 2>&1)
-H "Actions: view, View Logs, $click_url, clear=true" \
-d "$MESSAGE" 2>&1)
curl_exit_code=$?
set -e # Re-enable exit on error