diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 9a3c549a..024b9e5e 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -47,11 +47,7 @@ jobs: curl -fS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \ -d parse_mode="HTML" \ - -d text="🚀 AWOOOI 部署開始 -├ 📝 ${{ steps.commit.outputs.message }} -├ 🔖 ${{ steps.commit.outputs.short_sha }} -├ 👤 ${{ github.actor }} -└ 🌿 main" + -d "text=🚀 AWOOOI 部署開始%0A├ 📝 ${{ steps.commit.outputs.message }}%0A├ 🔖 ${{ steps.commit.outputs.short_sha }}%0A├ 👤 ${{ github.actor }}%0A└ 🌿 main" @@ -216,12 +212,7 @@ jobs: curl -fS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \ -d parse_mode="HTML" \ - -d text="✅ AWOOOI 部署完成 -├ 📝 ${{ steps.commit.outputs.message }} -├ 🔖 ${{ steps.commit.outputs.short_sha }} -├ ⏱️ 耗時: ${MINUTES}m ${SECONDS}s -├ 📦 API: ✅ Web: ✅ -└ 🩺 Health: ✅" + -d "text=✅ AWOOOI 部署完成%0A├ 📝 ${{ steps.commit.outputs.message }}%0A├ 🔖 ${{ steps.commit.outputs.short_sha }}%0A├ ⏱️ 耗時: ${MINUTES}m ${SECONDS}s%0A├ 📦 API: ✅ Web: ✅%0A└ 🩺 Health: ✅" - name: Notify Pipeline Failure if: failure() @@ -229,8 +220,4 @@ jobs: curl -fS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \ -d chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \ -d parse_mode="HTML" \ - -d text="❌ AWOOOI 部署失敗 -├ 📝 ${{ steps.commit.outputs.message }} -├ 🔖 ${{ steps.commit.outputs.short_sha }} -├ 👤 ${{ github.actor }} -└ 🔗 查看日誌" + -d "text=❌ AWOOOI 部署失敗%0A├ 📝 ${{ steps.commit.outputs.message }}%0A├ 🔖 ${{ steps.commit.outputs.short_sha }}%0A├ 👤 ${{ github.actor }}%0A└ 🔗 查看日誌"