Skip to content

Commit 7a5dc31

Browse files
Update main.yml
Fix VNU download and check
1 parent b004a5c commit 7a5dc31

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ jobs:
2727
java-package: jre
2828
check-latest: true
2929
- name: Download Nu Html Checker
30-
run: curl -sSfLO 'https://github.com/validator/validator/releases/download/latest/vnu.jar'
30+
run: |
31+
curl -sSfL -o vnu.zip \
32+
https://github.com/validator/validator/releases/download/20.6.30/vnu.linux.zip
33+
unzip vnu.zip
3134
- name: Run Nu Html Checker to check HTML, CSS and SVG files
32-
run: find . -type f \( -name '*.html' -o -name '*.css' -o -name '*.svg' \) -exec java -jar vnu.jar --verbose --also-check-css --also-check-svg --filterpattern '.*skipping . heading level.*|.*bad value .#git. for attribute .rel.*' {} +
35+
run: |
36+
find . -type f \( -name '*.html' -o -name '*.css' -o -name '*.svg' \) \
37+
-exec java -jar vnu-runtime-image/lib/vnu.jar \
38+
--verbose --also-check-css --also-check-svg \
39+
--filterpattern '.*skipping . heading level.*|.*bad value .#git. for attribute .rel.*' {} +
3340
- name: Check for obsolete image files
3441
if: always() && steps.deploy.outcome == 'success'
3542
run: |

0 commit comments

Comments
 (0)