Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[CI] Add timeout and retry to linkcheck #20708

Merged
merged 5 commits into from
Oct 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 17 additions & 4 deletions .github/workflows/link_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,21 @@ jobs:
python -m pip install --user -e python

- name: Link Check
env:
MAX_RETRY: 3
run: |
cd docs/python_docs/python
make clean
make linkcheck EVAL=0
shell: bash
for run in {1..$MAX_RETRY}
do
cd docs/python_docs/python
make clean
timeout 10m make linkcheck EVAL=0
if [[ $? -eq 0 ]]
then
break
else
if [[ run -eq $MAX_RETRY ]]
then
exit 1
fi
fi
done