Skip to content

Commit 25d4aa3

Browse files
committed
ci: analyse and show overfull hbox(es)
and upload a second artifact containing pdf and all aux files Signed-off-by: Yukai Chou <[email protected]>
1 parent ca30360 commit 25d4aa3

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/doc.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,32 @@ jobs:
2929
run: |
3030
l3build doc -q
3131
32-
- uses: actions/upload-artifact@v4
32+
- name: Analyze manual log
33+
run: |
34+
# set a notice message
35+
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions?tool=bash#setting-a-notice-message
36+
# create multiline annotations by using URL-encoded newline "%0A"
37+
# https://github.com/actions/toolkit/issues/193#issuecomment-605394935
38+
OVERFULL_HBOX=$(
39+
grep -r '^Overfull \\hbox' build/doc/pgfmanual.log |
40+
awk 'BEGIN {RS=""}{gsub(/\n/,"%0A",$0); print $0}'
41+
)
42+
echo "::notice file=build/doc/pgfmanual.log,title=Overfull hbox(es)::$OVERFULL_HBOX"
43+
44+
- name: Upload manual
45+
uses: actions/upload-artifact@v4
3346
with:
3447
name: pgfmanual
3548
path: build/doc/pgfmanual.pdf
3649

50+
- name: Upload manual with aux
51+
uses: actions/upload-artifact@v4
52+
with:
53+
name: pgfmanual-with-aux
54+
path: |
55+
build/doc/pgfmanual.*
56+
!build/doc/pgfmanual.tex
57+
3758
- name: Deploy tlcontrib
3859
env:
3960
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)