Skip to content

Commit acafde4

Browse files
committed
feat: test notification to feishu
EE-18909
1 parent 4afe592 commit acafde4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/dispatch.prod.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@ jobs:
2929
event-type: ${{ github.repository }}/${{ github.ref_name }}-${{ steps.extract.outputs.sha }}
3030
client-payload: '{ "repo": "${{ github.repository }}", "ref": "${{ github.ref_name }}", "sha": "${{ github.sha }}", "env": "prod" }'
3131

32-
notify-feishu-on-failure:
33-
name: Notify Feishu on Failure
32+
notify-feishu:
33+
name: Notify Feishu
3434
runs-on: ubuntu-latest
35-
if: failure()
35+
if: always()
3636
steps:
37-
- name: Send notification to Feishu on failure
37+
- name: Send notification to Feishu
3838
run: |
3939
curl -X POST ${{ secrets.FEISHU_CI_BOT_WEBHOOK_URL }} \
4040
-H 'Content-Type: application/json' \
4141
-d '{
4242
"msg_type": "text",
4343
"content": {
44-
"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 }})"
44+
"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 }})"
4545
}
4646
}'

0 commit comments

Comments
 (0)