Update deploy.yml
This commit is contained in:
1 parent
bef001a7dc
commit
6ad420418e
1 file changed
+3
-2
@@ -452,16 +452,17 @@ jobs:
|
|||||||
-d parse_mode="Markdown"
|
-d parse_mode="Markdown"
|
||||||
|
|
||||||
- name: Send Feishu notification
|
- name: Send Feishu notification
|
||||||
if: secrets.FEISHU_WEBHOOK_URL
|
if: ${{ secrets.FEISHU_WEBHOOK_URL != '' }}
|
||||||
env:
|
env:
|
||||||
FEISHU_WEBHOOK_URL: ${{ secrets.FEISHU_WEBHOOK_URL }}
|
FEISHU_WEBHOOK_URL: ${{ secrets.FEISHU_WEBHOOK_URL }}
|
||||||
run: |
|
run: |
|
||||||
|
CURRENT_TIME=$(date +'%Y-%m-%d %H:%M:%S')
|
||||||
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 '{
|
||||||
"msg_type": "text",
|
"msg_type": "text",
|
||||||
"content": {
|
"content": {
|
||||||
"text": "✅ **部署成功**\n\n📦 项目: ${{ github.repository }}\n🌿 分支: ${{ github.ref_name }}\n🔗 Commit: ${{ github.sha }}\n🕐 时间: '$(date +'%Y-%m-%d %H:%M:%S')'\n\n📊 部署目标:\n- EdgeOne Pages ✓\n- UpYun ✓\n- CDN 刷新 ✓"
|
"text": "✅ **部署成功**\n\n📦 项目: ${{ github.repository }}\n🌿 分支: ${{ github.ref_name }}\n🔗 Commit: ${{ github.sha }}\n🕐 时间: '"${CURRENT_TIME}"'\n\n📊 部署目标:\n- EdgeOne Pages ✓\n- UpYun ✓\n- CDN 刷新 ✓"
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user