Skip to content

Commit

Permalink
better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lbarraga committed Sep 12, 2024
1 parent 6a478f7 commit c7af56e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/detect_html.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: HTML tag detection

on: [push, pull_request] # Trigger on push or pull request events
on: [push, pull_request]

jobs:
link-check:
Expand All @@ -11,7 +11,10 @@ jobs:

- name: Run grep command and fail on match
run: |
if grep -Ho '</[^>]*>' mkdocs/docs/HPC/*.md; then
# -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
Expand Down

0 comments on commit c7af56e

Please sign in to comment.