Update deploy.yml
This commit is contained in:
1 parent
df24f516b3
commit
e8213d9e83
1 file changed
+3
-2
@@ -452,16 +452,17 @@ jobs:
|
||||
-d parse_mode="Markdown"
|
||||
|
||||
- name: Send Feishu notification
|
||||
if: secrets.FEISHU_WEBHOOK_URL
|
||||
if: ${{ secrets.FEISHU_WEBHOOK_URL != '' }}
|
||||
env:
|
||||
FEISHU_WEBHOOK_URL: ${{ secrets.FEISHU_WEBHOOK_URL }}
|
||||
run: |
|
||||
CURRENT_TIME=$(date +'%Y-%m-%d %H:%M:%S')
|
||||
curl -s -X POST "${FEISHU_WEBHOOK_URL}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"msg_type": "text",
|
||||
"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