From 79bf67a0efffabdeff3e83eb11b0c19c5ac47be1 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Thu, 17 Sep 2026 06:25:50 +0000 Subject: [PATCH] Print MiKTeX's own logs when a document fails to compile A lualatex abort writes no 'document.log', and names '/latex/.miktex/texmfs/data/miktex/log/lualatex.log' as the file holding the reason. The container is removed with it, so the cause was never visible. Also drops the literal quotes from the 'Specific' job's outputs: a heredoc writing '$GITHUB_OUTPUT' does not strip them, so the quotes were part of the value and showed up in step names. Co-Authored-By: Patrick Lehmann --- .github/workflows/Pipeline.yml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/Pipeline.yml b/.github/workflows/Pipeline.yml index 69bfd97..bad6ea0 100644 --- a/.github/workflows/Pipeline.yml +++ b/.github/workflows/Pipeline.yml @@ -279,6 +279,17 @@ jobs: ls -lAh *.pdf + - name: 🗒️ MiKTeX log of the failed run + if: failure() + run: | + for logFile in /latex/.miktex/texmfs/data/miktex/log/*.log /var/log/miktex/*.log; do + if [[ -f "${logFile}" ]]; then + printf -- "::group::%s\n" "${logFile}" + cat -- "${logFile}" + printf -- "::endgroup::\n" + fi + done + - name: 📤 Upload 'document-pdf' artifact uses: pyTooling/upload-artifact@v7 with: @@ -309,11 +320,11 @@ jobs: ci_tag="ci-${variant}-${{ needs.MiKTeX.outputs.short_sha }}" tee "${GITHUB_OUTPUT}" <