Since this morning the GH Actions jobs are failing with the error below, but I can’t seem to find the root cause.
Can someone help please? thank you!
Running 3 checks (Scripts, Links, Images) in ["_site"] on *.html files...
Checking 43 internal links
Checking internal link hashes in 2 files
Ran on 17 files!
For the Links check, the following failures were found:
* At _site/posts/how-to-test-terraform-modules/index.html:1:
'a' tag is missing a reference
HTML-Proofer found 1 failure!
Error: Process completed with exit code 1.
thanks @chuckhoupt ! that was the exact problem. Since I am the only author for now, I have removed the explicit author information in _data/authors.yml and use the default from _config.yml as mentioned in the doc. The GH action jobs are now passing.
Posting this here in case someone else runs into this.
These kind of errors are a bit tricky to catch locally.
Doing bundle exec jekyll serve , locally builds the website and things look good. But when run on github.com it throws an error about missing a href tags.
Here’s how to re-create the error locally
First build the site locally bundle exec jekyll build
This should throw an error with the offending bit of HTML, which can then provide more clues as to the real problem
In my case it was a non existent HTTP link in the markdown