fix(ci): add docs workflow file to paths trigger

Changes to .gitea/workflows/docs.yml itself should also trigger
a docs rebuild so workflow fixes are immediately testable.
This commit is contained in:
2026-02-09 08:43:32 -06:00
parent bbee39431d
commit 0d23ceeede

View File

@@ -5,6 +5,7 @@ on:
branches: [main] branches: [main]
paths: paths:
- "docs/**" - "docs/**"
- ".gitea/workflows/docs.yml"
jobs: jobs:
build-and-deploy: build-and-deploy:
@@ -12,11 +13,12 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
run: | run: |
REPO_URL="http://localhost:3000/kindred/create.git"
if [ -d .git ]; then if [ -d .git ]; then
git fetch origin main git fetch "$REPO_URL" main
git checkout -f origin/main git checkout -f FETCH_HEAD
else else
git clone --depth 1 --branch main https://git.kindred-systems.com/kindred/create.git . git clone --depth 1 --branch main "$REPO_URL" .
fi fi
- name: Build mdBook - name: Build mdBook