Skip to content

Commit 6a2d7bf

Browse files
committed
feat: create issue for failed runs
1 parent 04898be commit 6a2d7bf

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/scheduled-jobs.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Scheduled Jobs
22

33
on:
44
schedule:
5-
- cron: '0 */8 * * *'
5+
- cron: "0 */8 * * *"
66
push:
77
branches:
88
- main
@@ -14,7 +14,7 @@ on:
1414
inputs:
1515
reset:
1616
description: Space-separated paths to remove from schema before running an update
17-
default: ''
17+
default: ""
1818
type: string
1919

2020
concurrency:
@@ -66,3 +66,22 @@ jobs:
6666
- definitions
6767
- docs/COMPARISON.md
6868
default_author: github_actions
69+
70+
report-failures:
71+
name: Report failures
72+
runs-on: ubuntu-latest
73+
needs: update-schemas
74+
if: failure() && github.event_name != 'workflow_dispatch'
75+
permissions:
76+
contents: read
77+
issues: write
78+
steps:
79+
- uses: actions/checkout@v5
80+
81+
- name: Report build failure
82+
uses: CodeReaper/create-issue-action@v1
83+
with:
84+
title: ${{ github.workflow }} failed
85+
assignees: CodeReaper
86+
body: See the [log](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}) for more details.
87+
comment: Latest failed runs [log](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).

0 commit comments

Comments
 (0)