fix(ci): replace actions/checkout with git clone in docs workflow
Some checks failed
Build and Test / build (pull_request) Has been cancelled

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.
This commit is contained in:
2026-02-09 08:20:38 -06:00
parent 769072fb9d
commit 65a2bb98db

View File

@@ -4,14 +4,20 @@ on:
push:
branches: [main]
paths:
- 'docs/**'
- "docs/**"
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/