[latex3-commits] [git/LaTeX3-latex3-latex2e] ghactions: Send notifications from GitHub Actions (eee68c43)
Marcel Fabian Krüger
tex at 2krueger.de
Sat Jul 24 17:22:08 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : ghactions
Link : https://github.com/latex3/latex2e/commit/eee68c43c2df7d35ee6f953ed712ccd6b0287785
>---------------------------------------------------------------
commit eee68c43c2df7d35ee6f953ed712ccd6b0287785
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Sat Jul 24 00:41:44 2021 +0200
Send notifications from GitHub Actions
>---------------------------------------------------------------
eee68c43c2df7d35ee6f953ed712ccd6b0287785
.github/workflows/main.yaml | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
index 5b292ee1..d1c33f36 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.