diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index c92a23f9..bce27786 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -62,14 +62,10 @@ jobs: - name: Notify Pipeline Start run: | - MSG="🚀 AWOOOI 部署開始 -├ 📝 ${{ steps.commit.outputs.message }} -├ 🔖 ${{ steps.commit.outputs.short_sha }} -├ 👤 ${{ github.actor }} -└ 🌿 main" + MSG="AWOOOI Deploy Start | ${{ steps.commit.outputs.message }} | ${{ steps.commit.outputs.short_sha }} | ${{ github.actor }}" curl -fS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \ -H "Content-Type: application/json" \ - -d "{\"chat_id\":\"${{ secrets.TELEGRAM_CHAT_ID }}\",\"parse_mode\":\"HTML\",\"text\":$(echo "$MSG" | python3 -c 'import json,sys; print(json.dumps(sys.stdin.read()))')}" + -d "{\"chat_id\":\"${{ secrets.TELEGRAM_CHAT_ID }}\",\"text\":$(echo "$MSG" | python3 -c 'import json,sys; print(json.dumps(sys.stdin.read()))')}" @@ -528,11 +524,7 @@ jobs: - name: Notify Pipeline Failure if: failure() run: | - MSG="❌ AWOOOI 部署失敗 -├ 📝 ${{ steps.commit.outputs.message }} -├ 🔖 ${{ steps.commit.outputs.short_sha }} -├ 👤 ${{ github.actor }} -└ 🔗 查看日誌: http://192.168.0.110:3001/wooo/awoooi/actions" + MSG="AWOOOI Deploy FAILED | ${{ steps.commit.outputs.message }} | ${{ steps.commit.outputs.short_sha }} | ${{ github.actor }} | http://192.168.0.110:3001/wooo/awoooi/actions" curl -fS -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \ -H "Content-Type: application/json" \ - -d "{\"chat_id\":\"${{ secrets.TELEGRAM_CHAT_ID }}\",\"parse_mode\":\"HTML\",\"text\":$(echo "$MSG" | python3 -c 'import json,sys; print(json.dumps(sys.stdin.read()))')}" + -d "{\"chat_id\":\"${{ secrets.TELEGRAM_CHAT_ID }}\",\"text\":$(echo "$MSG" | python3 -c 'import json,sys; print(json.dumps(sys.stdin.read()))')}"