[latex3-commits] [git/LaTeX3-latex3-latex2e] ghactions: Send notifications from GitHub Actions (93a2834f)

Marcel Fabian Krüger tex at 2krueger.de
Sat Jul 24 15:37:52 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : ghactions
Link       : https://github.com/latex3/latex2e/commit/93a2834f9b6755bc8a9d39fc57064681a5215476

>---------------------------------------------------------------

commit 93a2834f9b6755bc8a9d39fc57064681a5215476
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date:   Sat Jul 24 00:41:44 2021 +0200

    Send notifications from GitHub Actions


>---------------------------------------------------------------

93a2834f9b6755bc8a9d39fc57064681a5215476
 .github/workflows/main.yaml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index c3383342..5ae99755 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -1,6 +1,7 @@
 name: Automated testing
 on:
   push:
+  pull_request:
 
 jobs:
   l3build:
@@ -161,3 +162,28 @@ jobs:
         with:
           name: ${{ matrix.artifact_name }}
           path: "**/*.pdf"
+  notifiy:
+    name: Send notifications
+    runs-on: ubuntu-20.04
+    needs: l3build
+    if: ${{ failure() && github.event_name != 'pull_request' }}
+    steps:
+      - name: Send mail
+        uses: dawidd6/action-send-mail at ceb614a2c5737d913f2d2729e2bcc70ad933382b
+        with:
+          server_address: typesetting.eu
+          server_port: 587
+          username: ${{secrets.MAIL_USERNAME}}
+          password: ${{secrets.MAIL_PASSWORD}}
+          to: latex3-commits at tug.org
+          from: LaTeX CI <github at latex-project.org>
+          priority: high
+          subject: "Test failed: ${{github.repository}} (${{github.ref}})"
+          body: |
+            Test failure for ${{github.repository}}
+            -------------------------------------------------------------
+
+            On branch:        ${{github.ref}} (${{github.sha}})
+            Initiated by:     ${{github.actor}}
+            Commit URL:       https://github.com/${{github.repository}}/commit/${{github.sha}}
+            More information: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}





More information about the latex3-commits mailing list.