File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 5
5
# check links at 01:30 a.m. every day
6
6
- cron : ' 30 1 * * *'
7
7
8
+ workflow_dispatch : # allow manual trigger
9
+
8
10
jobs :
9
11
link-check :
10
12
runs-on : ubuntu-latest
11
13
steps :
12
14
# - uses: actions/checkout@v3
13
15
14
- - name : linkchecker
16
+ - name : Install linkchecker
15
17
run : |
16
18
pip install linkchecker
17
- linkchecker https://opencompass.readthedocs.io/ --no-robots -t 30 --no-warnings |
18
- --ignore-url https://opencompass\.readthedocs\.io/.*/static/images/opencompass_logo\.svg |
19
- --ignore-url https://opencompass\.readthedocs\.io/.*/_static/images/icon-menu-dots\.svg |
20
- --ignore-url https://opencompass\.readthedocs\.io/policy |
21
- --ignore-url https://opencompass\.readthedocs\.io/(en|zh_CN)/[0-9a-f]{40}/.*
19
+
20
+ - name : Run linkchecker
21
+ run : |
22
+ linkchecker https://opencompass.readthedocs.io/ --no-robots -t 30 --no-warnings \
23
+ --ignore-url "https://opencompass.readthedocs.io/.*/static/images/opencompass_logo.svg" \
24
+ --ignore-url "https://opencompass.readthedocs.io/.*/_static/images/icon-menu-dots.svg" \
25
+ --ignore-url "https://opencompass.readthedocs.io/policy" \
26
+ --ignore-url "https://opencompass.readthedocs.io/(en|zh_CN)/[0-9a-f]{40}/.*"
You can’t perform that action at this time.
0 commit comments