Skip to content

html detection workflow #3

html detection workflow

html detection workflow #3

Workflow file for this run

name: HTML tag detection
on: [push, pull_request]
jobs:
link-check:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Run grep command and fail on match
run: |
# -n: show line number
# -H: show filename
# -o: show only the matching part of the line
if grep -nHo '</[^>]*>' mkdocs/docs/HPC/*.md; then
echo "Error: HTML tags detected in Markdown files!" >&2
exit 1
else
echo "No HTML tags detected in Markdown files."
fi