You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

validate_links.yml 583 B

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