mirror of
https://github.com/ublue-os/bazzite.git
synced 2024-12-26 12:16:34 +00:00
ci(docs): Add retry logic to build_mkdocs (#1568)
This commit is contained in:
parent
646d3f380f
commit
b668e5db46
10
.github/workflows/build_mkdocs/action.yml
vendored
10
.github/workflows/build_mkdocs/action.yml
vendored
@ -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' }}
|
||||
|
Loading…
Reference in New Issue
Block a user