Skip to content

Commit

Permalink
ci: analyse and show overfull hbox(es)
Browse files Browse the repository at this point in the history
and upload a second artifact containing pdf and all aux files

Signed-off-by: Yukai Chou <[email protected]>
  • Loading branch information
muzimuzhi committed Dec 26, 2023
1 parent ca30360 commit 641ed69
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,32 @@ jobs:
run: |
l3build doc -q
- uses: actions/upload-artifact@v4
- name: Analyze manual log
run: |
# set a notice message
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions?tool=bash#setting-a-notice-message
# create multiline annotations by using URL-encoded newline "%0A"
# https://github.com/actions/toolkit/issues/193#issuecomment-605394935
OVERFULL_HBOX=$(
grep -r '^Overfull \\hbox' build/doc/pgfmanual.log |
awk 'BEGIN {RS=""}{gsub(/\n/,"%0A",$0); print $0}'
)
echo "::notice file=build/doc/pgfmanual.log,title=Overfull hbox(es)::$OVERFULL_HBOX"
- name: Upload manual
uses: actions/upload-artifact@v4
with:
name: pgfmanual
path: build/doc/pgfmanual.pdf

- name: Upload manual with aux
uses: actions/upload-artifact@v4
with:
name: pgfmanual-with-aux
path: |
build/doc/pgfmanual.*
!build/doc/pgfmanual.tex
- name: Deploy tlcontrib
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 641ed69

Please sign in to comment.