Skip to content

Commit 5b93592

Browse files
authoredSep 10, 2024··
[Fix] Fix link-check workflow by adjusting line breaks in URL ignore patterns (#1507)
* update link-check * update link-check * update link-check
1 parent b5f8afb commit 5b93592

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed
 

‎.github/workflows/link-check.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,22 @@ on:
55
# check links at 01:30 a.m. every day
66
- cron: '30 1 * * *'
77

8+
workflow_dispatch: # allow manual trigger
9+
810
jobs:
911
link-check:
1012
runs-on: ubuntu-latest
1113
steps:
1214
# - uses: actions/checkout@v3
1315

14-
- name: linkchecker
16+
- name: Install linkchecker
1517
run: |
1618
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}/.*"

0 commit comments

Comments
 (0)
Please sign in to comment.