mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
[Fix] Fix link-check workflow by adjusting line breaks in URL ignore patterns (#1507)
* update link-check * update link-check * update link-check
This commit is contained in:
parent
b5f8afb57b
commit
5b93592242
17
.github/workflows/link-check.yml
vendored
17
.github/workflows/link-check.yml
vendored
@ -5,17 +5,22 @@ on:
|
|||||||
# check links at 01:30 a.m. every day
|
# check links at 01:30 a.m. every day
|
||||||
- cron: '30 1 * * *'
|
- cron: '30 1 * * *'
|
||||||
|
|
||||||
|
workflow_dispatch: # allow manual trigger
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
link-check:
|
link-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# - uses: actions/checkout@v3
|
# - uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: linkchecker
|
- name: Install linkchecker
|
||||||
run: |
|
run: |
|
||||||
pip install linkchecker
|
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 |
|
- name: Run linkchecker
|
||||||
--ignore-url https://opencompass\.readthedocs\.io/.*/_static/images/icon-menu-dots\.svg |
|
run: |
|
||||||
--ignore-url https://opencompass\.readthedocs\.io/policy |
|
linkchecker https://opencompass.readthedocs.io/ --no-robots -t 30 --no-warnings \
|
||||||
--ignore-url https://opencompass\.readthedocs\.io/(en|zh_CN)/[0-9a-f]{40}/.*
|
--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}/.*"
|
||||||
|
Loading…
Reference in New Issue
Block a user