From 554b73330361913b4b7ab43100c4b382d91540bc Mon Sep 17 00:00:00 2001 From: Lyle McKarns Date: Thu, 16 Oct 2025 13:11:09 -0400 Subject: [PATCH 1/3] Convert builds to nox --- .github/workflows/reusable-build-docs.yaml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/reusable-build-docs.yaml b/.github/workflows/reusable-build-docs.yaml index 434b2f436d..9e7edae766 100644 --- a/.github/workflows/reusable-build-docs.yaml +++ b/.github/workflows/reusable-build-docs.yaml @@ -57,23 +57,12 @@ 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 make -- webdocs ${{ inputs.generate-redirects && 'EXTRA_TAGS="-t redirects"' || '' }} ANSIBLE_VERSION="${{ env.PACKAGE_VERSION != 'devel' && env.PACKAGE_VERSION || '' From 1631a60fd10be69347636621d78f737ae2d4107f Mon Sep 17 00:00:00 2001 From: Lyle McKarns Date: Thu, 16 Oct 2025 13:23:04 -0400 Subject: [PATCH 2/3] missing arg --- .github/workflows/reusable-build-docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-docs.yaml b/.github/workflows/reusable-build-docs.yaml index 9e7edae766..9d5f1baa3e 100644 --- a/.github/workflows/reusable-build-docs.yaml +++ b/.github/workflows/reusable-build-docs.yaml @@ -62,7 +62,7 @@ jobs: - name: Build the Ansible community package docs run: >- - nox make -- webdocs ${{ + nox -e make -- webdocs ${{ inputs.generate-redirects && 'EXTRA_TAGS="-t redirects"' || '' }} ANSIBLE_VERSION="${{ env.PACKAGE_VERSION != 'devel' && env.PACKAGE_VERSION || '' From 3ba00c1dd89f997eeff4555e82e74067e14e1f47 Mon Sep 17 00:00:00 2001 From: Lyle McKarns Date: Thu, 16 Oct 2025 13:32:36 -0400 Subject: [PATCH 3/3] Correct working-directory for nox build --- .github/workflows/reusable-build-docs.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-build-docs.yaml b/.github/workflows/reusable-build-docs.yaml index 9d5f1baa3e..2693369440 100644 --- a/.github/workflows/reusable-build-docs.yaml +++ b/.github/workflows/reusable-build-docs.yaml @@ -67,7 +67,7 @@ jobs: }} 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: >-