From 6f70b54941d5a609152de2d10b441d060a100935 Mon Sep 17 00:00:00 2001 From: forbes-0023 Date: Mon, 9 Feb 2026 08:20:38 -0600 Subject: [PATCH] fix(ci): replace actions/checkout with git clone in docs workflow The docs runner is a bare host without Node.js, so actions/checkout@v4 fails with 'Cannot find: node in PATH'. Replace with a plain git fetch/checkout that works without Node. --- .gitea/workflows/docs.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/docs.yml b/.gitea/workflows/docs.yml index 7a0278bfb6..f1a0ee7425 100644 --- a/.gitea/workflows/docs.yml +++ b/.gitea/workflows/docs.yml @@ -4,14 +4,21 @@ on: push: branches: [main] paths: - - 'docs/**' + - "docs/**" + - ".gitea/workflows/docs.yml" jobs: build-and-deploy: runs-on: docs steps: - name: Checkout - uses: actions/checkout@v4 + run: | + if [ -d .git ]; then + git fetch origin main + git checkout -f origin/main + else + git clone --depth 1 --branch main https://git.kindred-systems.com/kindred/create.git . + fi - name: Build mdBook run: mdbook build docs/