Skip to content

chore(deps): update pandoc/core docker tag to v3.8.0.0 #32

chore(deps): update pandoc/core docker tag to v3.8.0.0

chore(deps): update pandoc/core docker tag to v3.8.0.0 #32

Workflow file for this run

name: Test HTML
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Generate index.html
uses: docker://pandoc/core:3.8.0.0@sha256:5320a6f0c1c97326ae79c89509f9c1abed25cff146cb9413432bef672f2dfde4
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