Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CYHFREDA authored Nov 12, 2024
1 parent 6f21aed commit 0d1d1f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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🔍 請檢查日誌以獲取詳細信息。" \
Expand Down

0 comments on commit 0d1d1f8

Please sign in to comment.