We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 830ecf4 commit 9a723d2Copy full SHA for 9a723d2
1 file changed
.github/workflows/test-html.yml
@@ -15,9 +15,10 @@ jobs:
15
--standalone --template=template.html --output=index.html README.md
16
- name: Validate title tag
17
run: |
18
- count=$(grep -o '<title>' index.html | wc -l)
19
- if [ "$count" -ne 1 ]; then
20
- echo "Expected exactly one <title> tag, found $count"
+ count_open=$(grep -o '<title>' index.html | wc -l)
+ count_close=$(grep -o '</title>' index.html | wc -l)
+ if [ "$count_open" -ne 1 ] || [ "$count_close" -ne 1 ]; then
21
+ echo "Expected exactly one <title> tag and one </title> tag, found $count_open and $count_close"
22
exit 1
23
fi
24
close_count=$(grep -o '</title>' index.html | wc -l)
0 commit comments