From 390e60cfcbd7ea7f5cfbbb9427b3b158da4804ed Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Tue, 16 Jun 2026 09:43:15 +0200 Subject: [PATCH] .github: move setup-mkdocs to kernelkit/actions Finishes the migration started in 63f46d4d: setup-mkdocs was still referenced via a relative ./.github/actions path, which GitHub resolves against the calling repo, not infix, breaking spins (e.g. Styx) that reuse build.yml/build-release.yml. Use kernelkit/actions/setup-mkdocs@v1.2. Signed-off-by: Richard Alpe --- .github/actions/setup-mkdocs/action.yml | 20 -------------------- .github/workflows/build-release.yml | 2 +- .github/workflows/build.yml | 2 +- 3 files changed, 2 insertions(+), 22 deletions(-) delete mode 100644 .github/actions/setup-mkdocs/action.yml diff --git a/.github/actions/setup-mkdocs/action.yml b/.github/actions/setup-mkdocs/action.yml deleted file mode 100644 index 69a5568f8..000000000 --- a/.github/actions/setup-mkdocs/action.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'Setup MkDocs' -description: "Install MkDocs and the plugins required to build the Infix User's Guide (post-build.sh bundles it into WebUI images)." - -# Mirrors the dependency set in .github/workflows/docs.yml. Kept in-repo -# (rather than an external action) so any checkout of a commit needing -# docs-in-image can reproduce it without an out-of-tree dependency. -runs: - using: composite - steps: - - name: Install MkDocs and plugins - shell: bash - run: | - command -v pipx >/dev/null 2>&1 || python3 -m pip install --user pipx - python3 -m pipx install --force mkdocs - python3 -m pipx inject mkdocs \ - mkdocs-material pymdown-extensions mkdocs-callouts mike mkdocs-to-pdf mkdocs-glightbox - # Make the pipx-installed mkdocs visible to later steps (the build, - # where post-build.sh invokes it). - python3 -m pipx environment --value PIPX_BIN_DIR >> "$GITHUB_PATH" 2>/dev/null \ - || echo "$HOME/.local/bin" >> "$GITHUB_PATH" diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 059ef3e75..b3b9fe4e5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -46,7 +46,7 @@ jobs: enabled: ${{ inputs.use_cache }} # WebUI images bundle the mkdocs User's Guide via post-build.sh. - - uses: ./.github/actions/setup-mkdocs + - uses: kernelkit/actions/setup-mkdocs@v1.2 - name: Configure & Build env: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index afc9e145a..aa28c36c9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -125,7 +125,7 @@ jobs: target: ${{ env.TARGET }} # WebUI images bundle the mkdocs User's Guide via post-build.sh. - - uses: ./.github/actions/setup-mkdocs + - uses: kernelkit/actions/setup-mkdocs@v1.2 - name: Configure ${{ env.TARGET }} run: |