Skip to content

Commit 34c59e9

Browse files
committed
ci: remove Telegram deployment notification
1 parent b216f51 commit 34c59e9

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,3 @@ jobs:
5050
- name: Deploy to GitHub Pages
5151
id: deployment
5252
uses: actions/deploy-pages@v4
53-
- name: Notify Telegram on successful deployment
54-
if: success()
55-
env:
56-
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
57-
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
58-
PAGE_URL: ${{ steps.deployment.outputs.page_url }}
59-
run: |
60-
if [ -z "$TELEGRAM_BOT_TOKEN" ] || [ -z "$TELEGRAM_CHAT_ID" ]; then
61-
echo "Telegram secrets are not configured; skipping notification."
62-
exit 0
63-
fi
64-
message=$(printf '✅ Scripting 文档已部署成功\n%s\n提交:%s' "$PAGE_URL" "${GITHUB_SHA::7}")
65-
curl --fail --silent --show-error \
66-
--request POST "https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/sendMessage" \
67-
--data-urlencode "chat_id=${TELEGRAM_CHAT_ID}" \
68-
--data-urlencode "text=${message}"

0 commit comments

Comments
 (0)