mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-14 00:50:40 +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 }}
|
_OUTPUT_DIR: ${{ inputs.output_dir }}
|
||||||
run: |
|
run: |
|
||||||
source .venv/bin/activate
|
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
|
- name: Setup Pages
|
||||||
if: ${{ inputs.upload_github_page == 'true' }}
|
if: ${{ inputs.upload_github_page == 'true' }}
|
||||||
|
Loading…
Reference in New Issue
Block a user