forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
report master/release-* failures (mattermost#25197)
- Loading branch information
1 parent
36a15fd
commit 37dc35c
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Report on master workflow failure | ||
on: | ||
workflow_run: | ||
workflows: [Server CI Master, Web App CI Master] | ||
types: [completed] | ||
|
||
jobs: | ||
on-failure: | ||
runs-on: ubuntu-latest | ||
if: github.event.workflow_run.conclusion == 'failure' | ||
steps: | ||
name: Report failure | ||
run: | | ||
curl \ | ||
--fail \ | ||
-X POST \ | ||
-H "Content-Type: application/json" \ | ||
-d "{\"text\":\"#### ⚠️ ${{github.repository}}/${{ github.event.workflow_run.head_branch }} - ${{github.event.workflow_run.name}} build failure ⚠️\\nThe build is failing: [view failure](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id}}).\\n\"}" \ | ||
${{ secrets.MM_COMMUNITY_DEVELOPERS_INCOMING_WEBHOOK_FROM_GH_ACTIONS }} |