Link check #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Link check' | |
on: | |
schedule: | |
# check links at 01:30 a.m. every day | |
- cron: '30 1 * * *' | |
jobs: | |
link-check: | |
runs-on: ubuntu-latest | |
steps: | |
# - uses: actions/checkout@v3 | |
- name: linkchecker | |
run: | | |
pip install linkchecker | |
linkchecker https://opencompass.readthedocs.io/ --no-robots -t 30 --no-warnings | | |
--ignore-url https://opencompass\.readthedocs\.io/.*/static/images/opencompass_logo\.svg | | |
--ignore-url https://opencompass\.readthedocs\.io/.*/_static/images/icon-menu-dots\.svg | | |
--ignore-url https://opencompass\.readthedocs\.io/policy | | |
--ignore-url https://opencompass\.readthedocs\.io/(en|zh_CN)/[0-9a-f]{40}/.* |