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

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


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

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

commit a72988c39d2458311e4fae39a8f201eef85b4df8
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.


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

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

diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index c3383342..8375fe9f 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.