From f4f797617d37d3423db42e7967de54d4e36902fe Mon Sep 17 00:00:00 2001 From: Jay Ravani Date: Fri, 17 Jul 2026 22:38:57 +0200 Subject: [PATCH] fix(ci): pull Git LFS content before compiling arc42 PDF The figure PDFs are tracked via Git LFS (*.pdf in .gitattributes), but actions/checkout doesn't fetch LFS content by default inside a custom container job. pdflatex was getting the LFS pointer text instead of the real PDF binary and failing to include it. Installs git-lfs and pulls before the build. Verified locally: a plain checkout without this step reproduces the exact xpdf/xref errors from the failed run; with git lfs pull, the same container builds documentation.pdf cleanly. --- .github/workflows/docs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5147f5e..2ec31f0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -13,6 +13,12 @@ jobs: container: texlive/texlive:latest steps: - uses: actions/checkout@v4 + - name: Pull LFS content (figures are stored via Git LFS) + run: | + apt-get update -qq && apt-get install -y -qq git-lfs + git config --global --add safe.directory "$GITHUB_WORKSPACE" + git lfs install + git lfs pull - name: Build arc42 documentation working-directory: documentation run: make