Serverless E2E Test Notify #70207
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Serverless E2E Test Notify | |
| on: | |
| workflow_run: | |
| workflows: | |
| - "Export Scene Test" | |
| - "Branch Scene Test" | |
| - "Import Scene Test" | |
| - "Import Scene Test Alicloud" | |
| - "Import Console Api Test" | |
| - "Import Console Api Test Alicloud" | |
| - "Cluster Scene Test" | |
| - "Changefeed Scene Test" | |
| - "Audit Log Scene Test" | |
| - "Branch Scene Test (Dev)" | |
| types: | |
| - completed | |
| jobs: | |
| notify-on-failure: | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.head_branch == 'master' }} | |
| steps: | |
| - name: Send Notification | |
| uses: northwang-lucky/chatbot-webhook-client@v1.1.1 | |
| with: | |
| app: Lark | |
| webhook: ${{ secrets.NOTIFY_WEBHOOK }} | |
| template: >- | |
| { | |
| "msg_type": "interactive", | |
| "card": { | |
| "elements": [{ | |
| "tag": "div", | |
| "text": { | |
| "content": "**Message** \n${{ github.event.workflow_run.name}} #${{ github.event.workflow_run.run_number }} failed", | |
| "tag": "lark_md" | |
| } | |
| }, { | |
| "actions": [{ | |
| "tag": "button", | |
| "text": { | |
| "content": "More information", | |
| "tag": "lark_md" | |
| }, | |
| "url": "${{ github.event.workflow_run.html_url }}", | |
| "type": "default", | |
| "value": {} | |
| }], | |
| "tag": "action" | |
| }], | |
| "header": { | |
| "title": { | |
| "content": "Serverless E2E Test Notify", | |
| "tag": "plain_text" | |
| }, | |
| "template": "red" | |
| } | |
| } | |
| } |