Skip to content

Commit

Permalink
ci(docs): Add retry logic to build_mkdocs (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeglius authored Aug 29, 2024
1 parent 646d3f3 commit b668e5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build_mkdocs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,15 @@ runs:
_OUTPUT_DIR: ${{ inputs.output_dir }}
run: |
source .venv/bin/activate
mkdocs build --verbose -d $_OUTPUT_DIR
max_tries=3
is_ok=0
while [[ $max_tries -gt 0 && is_ok -ne 1 ]]; do
if ! mkdocs build --verbose -d $_OUTPUT_DIR; then
max_tries=$(( $max_tries -1 ))
else
is_ok=1
fi
done
- name: Setup Pages
if: ${{ inputs.upload_github_page == 'true' }}
Expand Down

0 comments on commit b668e5d

Please sign in to comment.