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

Commit

Permalink
[CI] Add timeout and retry to linkcheck (#20708)
Browse files Browse the repository at this point in the history
* [CI] Add timeout and retry to linkcheck

* update

* mannually add timeout and retry

* update

* fix
  • Loading branch information
barry-jin authored Oct 28, 2021
1 parent d2107af commit 3256754
Showing 1 changed file with 17 additions and 4 deletions.
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

0 comments on commit 3256754

Please sign in to comment.