From 0d1d1f8f8f63d0bc8c9ec7d8b72fa612919a97c3 Mon Sep 17 00:00:00 2001 From: Chang Yu Huan Date: Tue, 12 Nov 2024 15:08:37 +0800 Subject: [PATCH] Update cd.yml --- .github/workflows/cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index f69dccf..33255c2 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,7 +61,7 @@ jobs: "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" - name: Notify on failure via Telegram - if: failure() # 只有在失敗時發送通知 + if: failure() # 只有在失敗時發送通知! run: | curl -s --data "chat_id=${{ secrets.TELEGRAM_CHAT_ID }}" \ --data "text=⚠️ *CD Pipeline 失敗!*%0A%0A部署失敗於分支: *${GITHUB_REF}*%0A提交信息: *${GITHUB_SHA}*%0A%0A🔍 請檢查日誌以獲取詳細信息。" \