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

Marcel Fabian Krüger tex at 2krueger.de
Sat Jul 24 00:45:17 CEST 2021


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

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

commit 400eae7694977c7b3bb532af5d22c9e37270d24d
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.


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

400eae7694977c7b3bb532af5d22c9e37270d24d
 .github/workflows/main.yaml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index c3383342..b294ef1b 100644
--- a/.github/workflows/main.yaml
+++ b/.github/workflows/main.yaml
@@ -161,3 +161,28 @@ jobs:
         with:
           name: ${{ matrix.artifact_name }}
           path: "**/*.pdf"
+  notifiy:
+    name: Send notifications
+    runs-on: ubuntu-20.04
+    needs: l3build
+    if: ${{ failure() && secrets.MAIL_USERNAME != null }}
+    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.head_ref}})"
+          body: |
+            Test failure for ${{github.repository}}
+            -------------------------------------------------------------
+
+            On branch:        ${{github.head_ref}} (${{github.sha}})
+            Initiated by:     ${{github.actor}}
+            Commit URL:       ${{env.GITHUB_SERVER_URL}}/${{github.repository}}/commit/${{github.sha}}
+            More information: ${{env.GITHUB_SERVER_URL}}/${{github.repository}}/actions/runs/${{github.run_id}}





More information about the latex3-commits mailing list.