Skip to content

Commit 93a2ea5

Browse files
authored
chore(ci): send alert to slack when stencil-nightly fails
1 parent 7b0d8ef commit 93a2ea5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/stencil-nightly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,3 +235,9 @@ jobs:
235235
curl -H "Content-Type:application/json" \
236236
-d '{"embeds": [{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "color": 16711680, "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}]}' \
237237
${{secrets.DISCORD_NOTIFY_WEBHOOK}}
238+
- name: Notify on Slack
239+
if: failure()
240+
run: |
241+
curl -H "Content-Type:application/json" \
242+
-d '{"title": "❌ Workflow ${{github.workflow}} #${{github.run_number}} Failed", "url": "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"}' \
243+
${{secrets.SLACK_NOTIFY_WEBHOOK}}

0 commit comments

Comments
 (0)