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

Marcel Fabian Krüger tex at 2krueger.de
Sat Jul 24 02:07:05 CEST 2021


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

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

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

    Experiment: Send notifications from GitHub Actions
    
    Currently only sending for me in order not to spam our mailing lists too
    much.


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

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

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index c3383342..50dbf2ae 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: tex at 2krueger.de
+          from: LaTeX CI <github at latex-project.eu>
+          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}} (${{github.event.sender.name}})
+            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.