Skip to content

Commit a9f81b0

Browse files
Fix scala#8734: Add a CI watchdog workflow to create an issue on build failure
1 parent 02d6484 commit a9f81b0

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: CI Failure Watchdog
2+
3+
on: check_suite
4+
5+
jobs:
6+
create_issue:
7+
runs-on: self-hosted
8+
container: akmetiuk/dotty:2020-02-12
9+
10+
if:
11+
github.event.check_suite.head_branch == "master" && # Branch is master
12+
github.event.check_suite.status == "completed" &&
13+
github.event.check_suite.conclusion == "cancelled" # Status is failed
14+
15+
steps:
16+
- uses: JasonEtco/create-an-issue@v2
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
with:
20+
filename: .github/workflows/ci_failure_watchdog_template.md
21+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: CI Build failed
3+
labels: area:infrastructure
4+
---
5+
{{ tools.context.event.check_suite.url }}

0 commit comments

Comments
 (0)