From: Marc Fehling Date: Fri, 14 Apr 2023 19:29:54 +0000 (-0600) Subject: Automatically create issue when scheduled CI is failing. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F141%2Fhead;p=code-gallery.git Automatically create issue when scheduled CI is failing. --- 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