The action doesn't work. Give an error about an Invalid URL. No stack trace nothing.
Expected Behavior
I expect the Action to purge all images in the README
Current Behavior
It gives error
purging: https://github.com/jcubic/velvet/blob/master/README.md
Error: TypeError [ERR_INVALID_URL]: Invalid URL
Error: Invalid URL
Link to repo
https://github.com/jcubic/velvet
Possible solution
The issue is that README can contain normal noncached images added with HTML. Only Markdown images are cached.
So there is a need to check if img.attribs['data-canonical-src'] exists otherwise PURGE HTTP request with throw an error.
The action doesn't work. Give an error about an Invalid URL. No stack trace nothing.
Expected Behavior
I expect the Action to purge all images in the README
Current Behavior
It gives error
Link to repo
https://github.com/jcubic/velvet
Possible solution
The issue is that README can contain normal noncached images added with HTML. Only Markdown images are cached.
So there is a need to check if
img.attribs['data-canonical-src']exists otherwise PURGE HTTP request with throw an error.