Skip to content

Commit

Permalink
chore: add feishu notification (pingcap#1873) (pingcap#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jul 19, 2021
1 parent 3bf3ef5 commit d76768b
Show file tree
Hide file tree
Showing 6 changed files with 559 additions and 470 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/binlog-999999.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- master
- release-2.0
schedule:
- cron: '3 22 * * *' # run at minute 06:03 UTC+8
- cron: "3 22 * * *" # run at minute 06:03 UTC+8

jobs:
test-binlog-999999:
Expand Down Expand Up @@ -111,7 +111,20 @@ jobs:
with:
args: "chaos job failed, see https://github.com/pingcap/dm/actions/runs/{{ GITHUB_RUN_ID }}"

- name: Feishu notification
if: ${{ failure() }}
uses: whatwewant/action-robot-feishu@v0.0.10
with:
url: ${{ secrets.FEISHU_BOT_WEBHOOK_URL }}
title: FIX ME
text: |
repository: ${{ github.repository }}
committer: ${{ github.actor }}
compare: ${{ github.event.compare }}
job status: ${{ job.status }}
job url: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
# Debug via SSH if previous steps failed
- name: Set up tmate session
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v2
uses: mxschmitt/action-tmate@v2
Loading

0 comments on commit d76768b

Please sign in to comment.