Skip to content

Commit

Permalink
Don't prevent the upload of docs if linkcheck fails on the main branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
bluescarni committed Sep 22, 2023
1 parent 59f30c2 commit d2bf645
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/circleci_conda_heyoka_head_release_310.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,14 @@ cd $HEYOKA_PY_PROJECT_DIR

cd doc

make html linkcheck
# NOTE: do not run linkcheck on the main branch,
# as we don't want to prevent the docs upload
# in case of transient network errors.
if [[ "${CIRCLE_BRANCH}" == "main" ]]; then
make html
else
make html linkcheck
fi

if [[ ! -z "${CI_PULL_REQUEST}" ]]; then
echo "Testing a pull request, the generated documentation will not be uploaded.";
Expand Down

0 comments on commit d2bf645

Please sign in to comment.