Serverless E2E Test Notify #1007
This file contains 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" | |
types: | |
- completed | |
jobs: | |
notify-on-failure: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'failure' }} | |
steps: | |
- name: Send Notification | |
uses: northwang-lucky/[email protected] | |
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" | |
} | |
} | |
} |