File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 1- name : Incremental Build Triggered By Push Events
1+ name : Incremental Build Website Docs Triggered By Push Events
22
33on : repository_dispatch
44
@@ -186,3 +186,19 @@ jobs:
186186 if : github.event.client_payload.download_type == 'full'
187187 run : |
188188 bash ./scripts/get-latest-commits.sh ${{ secrets.GH_TOKEN }}
189+
190+ notify-feishu-on-failure :
191+ name : Notify Feishu on Failure
192+ runs-on : ubuntu-latest
193+ if : failure()
194+ steps :
195+ - name : Send notification to Feishu on failure
196+ run : |
197+ curl -X POST ${{ secrets.FEISHU_CI_BOT_WEBHOOK_URL }} \
198+ -H 'Content-Type: application/json' \
199+ -d '{
200+ "msg_type": "text",
201+ "content": {
202+ "text": "🚨 GitHub Action 失败通知:官网文档部署失败!\n- 仓库: ${{ github.repository }}\n- 分支: ${{ github.ref }}\n- 工作流: ${{ github.workflow }}\n- 触发人: ${{ github.actor }}\n- 详情: ${{ github.event.head_commit.message }}\n- [查看日志](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})"
203+ }
204+ }'
You can’t perform that action at this time.
0 commit comments