diff --git a/.github/workflows/reusable-build-docs.yaml b/.github/workflows/reusable-build-docs.yaml index 434b2f436d..2693369440 100644 --- a/.github/workflows/reusable-build-docs.yaml +++ b/.github/workflows/reusable-build-docs.yaml @@ -57,28 +57,17 @@ jobs: - name: Output Python info run: python --version --version && which python - - name: Graft ansible-core - run: nox -s clone-core - working-directory: build-directory - - - name: Install project requirements - run: >- - python -m pip install - -r tests/requirements.in - -c tests/requirements.txt - working-directory: build-directory - - name: Set the VERSION variable run: echo VERSION="${PACKAGE_VERSION}" >> "${GITHUB_ENV}" - name: Build the Ansible community package docs run: >- - make webdocs ${{ + nox -e make -- webdocs ${{ inputs.generate-redirects && 'EXTRA_TAGS="-t redirects"' || '' }} ANSIBLE_VERSION="${{ env.PACKAGE_VERSION != 'devel' && env.PACKAGE_VERSION || '' }}" - working-directory: build-directory/docs/docsite + working-directory: build-directory - name: Create a tarball with the build contents run: >-