From e0b7c04e6358fe62b762a491eecc7185f432850b Mon Sep 17 00:00:00 2001 From: Jirka Borovec <6035284+Borda@users.noreply.github.com> Date: Wed, 5 Jun 2024 18:32:36 +0200 Subject: [PATCH] ci/docs: enable dispatch build without warning as errors (#19948) --- .github/workflows/docs-build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs-build.yml b/.github/workflows/docs-build.yml index 64510b45c0..7f7a09ce44 100644 --- a/.github/workflows/docs-build.yml +++ b/.github/workflows/docs-build.yml @@ -108,11 +108,14 @@ jobs: - name: Full build for deployment if: github.event_name != 'pull_request' run: echo "DOCS_FETCH_ASSETS=1" >> $GITHUB_ENV + - name: Build without warnings + if: github.event_name != 'workflow_dispatch' + run: echo "BUILD_SPHINX_OPTS=-W --keep-going" >> $GITHUB_ENV - name: Make ${{ matrix.target }} working-directory: ./docs/source-${{ matrix.pkg-name }} # allow failing link check and doctest if you run with dispatch - continue-on-error: ${{ (matrix.target == 'doctest' || matrix.target == 'linkcheck') && github.event_name == 'workflow_dispatch' }} - run: make ${{ matrix.target }} --debug --jobs $(nproc) SPHINXOPTS="-W --keep-going" + continue-on-error: ${{ (matrix.target == 'doctest' || matrix.target == 'linkcheck') && github.event_name == 'workflow_dispatch' }} + run: make ${{ matrix.target }} --debug --jobs $(nproc) SPHINXOPTS="$BUILD_SPHINX_OPTS" - name: Keep artifact if: github.event_name == 'pull_request'