From 5d84f0c07d37ca54a49acfff13e32c83e8716084 Mon Sep 17 00:00:00 2001 From: pulpbot Date: Sun, 15 Jun 2025 03:04:15 +0000 Subject: [PATCH] Update CI files --- .github/workflows/docs.yml | 21 +++++++-------------- doc_requirements.txt | 2 +- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6144149d..b259dba2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -6,12 +6,12 @@ # For more info visit https://github.com/pulp/plugin_template --- -name: "Docs" +name: "Docs CI" on: workflow_call: jobs: - test: + changelog: if: "endsWith(github.base_ref, 'main')" runs-on: "ubuntu-latest" defaults: @@ -22,28 +22,21 @@ jobs: with: fetch-depth: 1 path: "pulp_python" - - uses: "actions/checkout@v4" - with: - fetch-depth: 0 - repository: "pulp/pulp-docs" - path: "pulp-docs" - ref: "rewrite-as-mkdocs-plugin" - uses: "actions/setup-python@v5" with: python-version: "3.12" - name: "Install python dependencies" run: | echo ::group::PYDEPS - pip install ../pulp-docs towncrier + pip install towncrier echo ::endgroup:: - name: "Build changelog" run: | towncrier build --yes --version 4.0.0.ci - - name: "Build docs" - working-directory: "pulp-docs" - run: | - pulp-docs fetch --dest .. - pulp-docs build + docs: + uses: 'pulp/pulp-docs/.github/workflows/docs-ci.yml@rewrite-as-mkdocs-plugin' + with: + pulpdocs_ref: 'rewrite-as-mkdocs-plugin' no-test: if: "!endsWith(github.base_ref, 'main')" diff --git a/doc_requirements.txt b/doc_requirements.txt index 6456b7d8..6daacdbe 100644 --- a/doc_requirements.txt +++ b/doc_requirements.txt @@ -5,4 +5,4 @@ # # For more info visit https://github.com/pulp/plugin_template towncrier -pulp-docs @ git+https://github.com/pulp/pulp-docs@main +pulp-docs @ git+https://github.com/pulp/pulp-docs@rewrite-as-mkdocs-plugin