validate_links.yml 604 B

12345678910111213141516171819202122232425262728
  1. name: "Validate links"
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '0 0 * * *'
  6. env:
  7. FILENAME: README.md
  8. jobs:
  9. validate_links:
  10. name: 'Check all links are working'
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout repository
  14. uses: actions/checkout@v2
  15. - name: Set up Python
  16. uses: actions/setup-python@v2
  17. with:
  18. python-version: '3.8'
  19. - name: Install dependencies
  20. run: python -m pip install -r scripts/requirements.txt
  21. - name: Validate all links from README.md
  22. run: python scripts/validate/links.py ${FILENAME}