Update deploy.yml

This commit is contained in:
Vaica committed 2026-06-25 16:13:23 +08:00
1 parent 27067de5bc
commit ed40eef2b3
1 file changed
+10 -15
+10 -15
View File
@@ -614,14 +614,14 @@ jobs:
if [ "$EDGEONE_DEPLOYED" = "true" ]; then if [ "$EDGEONE_DEPLOYED" = "true" ]; then
EDGEONE_DOWNLOAD="${{ needs.deploy-edgeone.outputs.download_duration }}" EDGEONE_DOWNLOAD="${{ needs.deploy-edgeone.outputs.download_duration }}"
EDGEONE_UPLOAD="${{ needs.deploy-edgeone.outputs.upload_duration }}" EDGEONE_UPLOAD="${{ needs.deploy-edgeone.outputs.upload_duration }}"
EDGEONE_DETAIL=$(printf "\n - 下载: %ss\n - 上传: %ss" "$EDGEONE_DOWNLOAD" "$EDGEONE_UPLOAD") EDGEONE_DETAIL=$(printf "\\n - 下载: %ss\\n - 上传: %ss" "$EDGEONE_DOWNLOAD" "$EDGEONE_UPLOAD")
fi fi
UPYUN_DETAIL="" UPYUN_DETAIL=""
if [ "$UPYUN_DEPLOYED" = "true" ]; then if [ "$UPYUN_DEPLOYED" = "true" ]; then
UPYUN_DOWNLOAD="${{ needs.deploy-upyun.outputs.download_duration }}" UPYUN_DOWNLOAD="${{ needs.deploy-upyun.outputs.download_duration }}"
UPYUN_UPLOAD="${{ needs.deploy-upyun.outputs.upload_duration }}" UPYUN_UPLOAD="${{ needs.deploy-upyun.outputs.upload_duration }}"
UPYUN_DETAIL=$(printf "\n - 下载: %ss\n - 上传: %ss" "$UPYUN_DOWNLOAD" "$UPYUN_UPLOAD") UPYUN_DETAIL=$(printf "\\n - 下载: %ss\\n - 上传: %ss" "$UPYUN_DOWNLOAD" "$UPYUN_UPLOAD")
fi fi
if [ "${{ steps.deploy-status.outputs.any_deployed }}" = "true" ]; then if [ "${{ steps.deploy-status.outputs.any_deployed }}" = "true" ]; then
@@ -647,14 +647,14 @@ jobs:
"${{ github.repository }}" \ "${{ github.repository }}" \
"${{ github.run_id }}") "${{ github.run_id }}")
curl -s -X POST "$FEISHU_WEBHOOK_URL" \ echo "📤 发送飞书通知..."
echo "Message length: ${#MESSAGE_TEXT}"
RESPONSE=$(curl -s -w "\nHTTP_STATUS:%{http_code}" -X POST "$FEISHU_WEBHOOK_URL" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{ -d "$(jq -n --arg text "$MESSAGE_TEXT" '{"msg_type":"text","content":{"text":$text}}')")
\"msg_type\": \"text\",
\"content\": { echo "飞书响应: $RESPONSE"
\"text\": \"$MESSAGE_TEXT\"
}
}"
- name: Get current date (CN) - name: Get current date (CN)
if: steps.deploy-status.outputs.any_deployed == 'true' if: steps.deploy-status.outputs.any_deployed == 'true'
@@ -844,9 +844,4 @@ jobs:
curl -s -X POST "$FEISHU_WEBHOOK_URL" \ curl -s -X POST "$FEISHU_WEBHOOK_URL" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{ -d "$(jq -n --arg text "$MESSAGE_TEXT" '{"msg_type":"text","content":{"text":$text}}')"
\"msg_type\": \"text\",
\"content\": {
\"text\": \"$MESSAGE_TEXT\"
}
}"