Skip to content

chore(deps): update actions/deploy-pages action to v5 #60

chore(deps): update actions/deploy-pages action to v5

chore(deps): update actions/deploy-pages action to v5 #60

Workflow file for this run

name: Test HTML
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Generate index.html
uses: docker://pandoc/core:3.9.0.0@sha256:456259758447bd2d10a996075b92014d74fea6fac52395c7b6aa08145c0f77ae
with:
args: >-
--standalone --template=template.html --output=index.html README.md
- name: Validate title tag
run: |
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
echo "Expected exactly one <title> tag and one </title> tag, found $count_open and $count_close"
exit 1
fi
close_count=$(grep -o '</title>' index.html | wc -l)
if [ "$close_count" -ne 1 ]; then
echo "Expected exactly one </title> tag, found $close_count"
exit 1
fi