diff --git a/.gitea/workflows/build-pdf.yml b/.gitea/workflows/build-pdf.yml index 6535b91..136f967 100644 --- a/.gitea/workflows/build-pdf.yml +++ b/.gitea/workflows/build-pdf.yml @@ -34,15 +34,13 @@ jobs: - name: Compile changed root files if: steps.changed.outputs.roots != '' uses: docker://texlive/texlive:latest - run: | - mkdir -p pdf aux - for f in ${{ steps.changed.outputs.roots }}; do - echo "== Building $f ==" - latexmk -pdf -interaction=nonstopmode -halt-on-error \ - -outdir=pdf -auxdir=aux "$f" - done - # keep pdf/ containing only pdfs - find pdf -type f ! -name '*.pdf' -delete + with: + entrypoint: sh + args: >- + -c "mkdir -p pdf aux && for f in ${{ steps.changed.outputs.roots }}; do + echo Building $f; + latexmk -pdf -interaction=nonstopmode -halt-on-error -outdir=pdf -auxdir=aux \"$f\" || exit 1; + done && find pdf -type f ! -name '*.pdf' -delete" - name: Upload built PDFs if: steps.changed.outputs.roots != ''