Update deploy.yml
This commit is contained in:
1 parent
d3b6654232
commit
be3c1443b1
1 file changed
+10
-15
@@ -614,14 +614,14 @@ jobs:
|
||||
if [ "$EDGEONE_DEPLOYED" = "true" ]; then
|
||||
EDGEONE_DOWNLOAD="${{ needs.deploy-edgeone.outputs.download_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
|
||||
|
||||
UPYUN_DETAIL=""
|
||||
if [ "$UPYUN_DEPLOYED" = "true" ]; then
|
||||
UPYUN_DOWNLOAD="${{ needs.deploy-upyun.outputs.download_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
|
||||
|
||||
if [ "${{ steps.deploy-status.outputs.any_deployed }}" = "true" ]; then
|
||||
@@ -647,14 +647,14 @@ jobs:
|
||||
"${{ github.repository }}" \
|
||||
"${{ 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" \
|
||||
-d "{
|
||||
\"msg_type\": \"text\",
|
||||
\"content\": {
|
||||
\"text\": \"$MESSAGE_TEXT\"
|
||||
}
|
||||
}"
|
||||
-d "$(jq -n --arg text "$MESSAGE_TEXT" '{"msg_type":"text","content":{"text":$text}}')")
|
||||
|
||||
echo "飞书响应: $RESPONSE"
|
||||
|
||||
- name: Get current date (CN)
|
||||
if: steps.deploy-status.outputs.any_deployed == 'true'
|
||||
@@ -844,9 +844,4 @@ jobs:
|
||||
|
||||
curl -s -X POST "$FEISHU_WEBHOOK_URL" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"msg_type\": \"text\",
|
||||
\"content\": {
|
||||
\"text\": \"$MESSAGE_TEXT\"
|
||||
}
|
||||
}"
|
||||
-d "$(jq -n --arg text "$MESSAGE_TEXT" '{"msg_type":"text","content":{"text":$text}}')"
|
||||
Reference in new issue
Block a user