opt: fix ntfy
This commit is contained in:
14
notify.sh
14
notify.sh
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user