Skip to content

chore(deps): update pandoc/core docker tag to v3.8.2.1 #38

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

chore(deps): update pandoc/core docker tag to v3.8.2.1 #38

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.2.1@sha256:6c1440145aaa075bd9cee256343bb108d95dfe77cfaafa6475c88d1efd62c580
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