Skip to content

Commit 7b0d8ef

Browse files
authored
chore(ci): send alert message when stencil-nightly fails
Send alert to a Discord channel using a webhook.
1 parent 9f013b7 commit 7b0d8ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/stencil-nightly.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,3 +225,13 @@ jobs:
225225
- name: Check build matrix status
226226
if: ${{ needs.test-react-e2e.result != 'success' }}
227227
run: exit 1
228+
229+
send-results-massages:
230+
runs-on: ubuntu-latest
231+
steps:
232+
- name: Notify on Discord
233+
if: failure()
234+
run: |
235+
curl -H "Content-Type:application/json" \
236+
-d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \
237+
${{secrets.DISCORD_NOTIFY_WEBHOOK}}

0 commit comments

Comments
 (0)