]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Automatically create issue when scheduled CI is failing. 141/head
authorMarc Fehling <mafehling.git@gmail.com>
Fri, 14 Apr 2023 19:29:54 +0000 (13:29 -0600)
committerMarc Fehling <mafehling.git@gmail.com>
Mon, 17 Apr 2023 17:38:01 +0000 (11:38 -0600)
.github/action-issue-template.md [new file with mode: 0644]
.github/workflows/precice-ci.yml

diff --git a/.github/action-issue-template.md b/.github/action-issue-template.md
new file mode 100644 (file)
index 0000000..1f75184
--- /dev/null
@@ -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.
index ffda49c25e0fe38cb1f94bc5bbf30bb4abee2524..f079575e6312649399db4c4eb5a6d073a3e8a206 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.