From 70be88b1455c061d4830bd7094fc5023f79d3d29 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Fri, 14 Apr 2023 13:29:54 -0600 Subject: [PATCH] Automatically create issue when scheduled CI is failing. --- .github/action-issue-template.md | 5 +++++ .github/workflows/precice-ci.yml | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .github/action-issue-template.md diff --git a/.github/action-issue-template.md b/.github/action-issue-template.md new file mode 100644 index 0000000..1f75184 --- /dev/null +++ b/.github/action-issue-template.md @@ -0,0 +1,5 @@ +--- +title: "Scheduled GitHub Actions worker is failing" +--- + +See [the action log](https://github.com/{{ env.GITHUB_REPOSITORY }}/actions/runs/{{ env.GITHUB_RUN_ID }}) for more details. diff --git a/.github/workflows/precice-ci.yml b/.github/workflows/precice-ci.yml index ffda49c..f079575 100644 --- a/.github/workflows/precice-ci.yml +++ b/.github/workflows/precice-ci.yml @@ -44,3 +44,13 @@ jobs: (./coupled_laplace_problem 2>&1 & ./fancy_boundary_condition >fbc.log) sed -i '2d' solution-10.vtk numdiff solution-10.vtk test_data/reference-10.vtk + + - name: Create issue about failure + if: ${{ failure() && (github.event_name == 'schedule') }} + uses: JasonEtco/create-an-issue@v2.9.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + filename: .github/action-issue-template.md + update_existing: true + search_existing: open -- 2.39.5