Skip to content

Commit 104b6db

Browse files
authored
tame tidy a bit
1 parent abd8f0d commit 104b6db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/manual-epub.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ jobs:
1515
apt-get install -y tidy
1616
1717
- name: Convert HTML to XHTML with Tidy
18-
run: tidy -asxhtml -utf8 -o user_guide/index.xhtml user_guide/index.html
18+
# Tidy returns 0 when all's well, 1 when there are warnings and 2 when there are errors.
19+
run: tidy -asxhtml -utf8 -o user_guide/index.xhtml user_guide/index.html || [ $? -eq 0 -o $? -eq 1 ]
1920

2021
- name: Convert ebook
2122
run: ebook-convert user_guide/index.xhtml koreader_user_guide.epub

0 commit comments

Comments
 (0)