okteto / samples

Learn how to develop with Okteto
https://okteto.com/
Apache License 2.0
110 stars 30 forks source link

adding github action for checking broken links #130

Closed RinkiyaKeDad closed 2 years ago

RinkiyaKeDad commented 2 years ago

Signed-off-by: Arsh Sharma arshsharma461@gmail.com

Uses: https://github.com/gaurav-nelson/github-action-markdown-link-check

RinkiyaKeDad commented 2 years ago

Example of failed output:

=========================> MARKDOWN LINK CHECK <=========================

FILE: ./helm/README.md

2 links checked.

FILE: ./php/README.md

7 links checked.

FILE: ./rails/README.md
[✖] https://github.com/okteto/okteto/blob/master/docs/installation.md → Status: [40](https://github.com/okteto/samples/runs/5625717478?check_suite_focus=true#step:4:40)4

6 links checked.

ERROR: 1 dead links found!
[✖] https://github.com/okteto/okteto/blob/master/docs/installation.md → Status: 404

FILE: ./jib/README.md

5 links checked.

FILE: ./coder/README.md

3 links checked.

FILE: ./README.md

[59](https://github.com/okteto/samples/runs/5625717478?check_suite_focus=true#step:4:59) links checked.

=========================================================================
RinkiyaKeDad commented 2 years ago

I'm letting the broken link in the rails README remain until we merge this PR so everyone can see the output of the action.