#!/usr/bin/env bash # notify.sh — send Telegram deploy notification set -euo pipefail TAG="$1" STATUS="$2" if [ "$STATUS" = "success" ]; then ICON="✅" LABEL="部署成功" else ICON="❌" LABEL="部署失败" fi MSG="${ICON} 岩美 ${TAG} ${LABEL} https://jiu.51yanmei.com" # 2026-07-03 备案通过,正式域名入口 curl -f -X POST "https://api.telegram.org/bot${TELEGRAM_TOKEN}/sendMessage" \ -d "chat_id=${TELEGRAM_CHAT_ID}" \ --data-urlencode "text=${MSG}" \ > /dev/null echo "==> notify: sent to Telegram (${STATUS})"