Skip to content
16 changes: 16 additions & 0 deletions .github/workflows/stencil-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,3 +225,19 @@ jobs:
- name: Check build matrix status
if: ${{ needs.test-react-e2e.result != 'success' }}
run: exit 1

send-results-massages:
runs-on: ubuntu-latest
steps:
- name: Notify on Discord
if: failure()
run: |
curl -H "Content-Type:application/json" \
-d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \
${{secrets.DISCORD_NOTIFY_WEBHOOK}}
- name: Notify on Slack
if: failure()
run: |
curl -H "Content-Type:application/json" \
-d '{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \
${{secrets.SLACK_NOTIFY_WEBHOOK}}
Loading