Skip to content

fix: validator skip placeholder checks in docs/guides/READMEs #8

fix: validator skip placeholder checks in docs/guides/READMEs

fix: validator skip placeholder checks in docs/guides/READMEs #8

Workflow file for this run

name: Build Codex Search Index
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build-index:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Restore SQL cache
uses: actions/cache@v4
with:
path: .cache/codex.db
key: codex-cache-${{ hashFiles('weaves/**/*.md', 'docs/**/*.md', 'wiki/**/*.md') }}
restore-keys: |
codex-cache-
- name: Install dependencies
run: npm install
- name: Build search index with SQL caching
run: |
# Run the enhanced auto-indexer with SQL diff cache
npm run index -- --validate
# Check if validation passed
if [ $? -ne 0 ]; then
echo "⚠️ Validation warnings found, but continuing with build"
fi
- name: Upload index artifacts
uses: actions/upload-artifact@v4
with:
name: codex-index
path: |
codex-index.json
codex-report.json
- name: Create index branch
run: |
git config --global user.name 'Frame Dev Bot'
git config --global user.email 'team@frame.dev'
# Create or checkout index branch
git checkout -B index
# Copy the index files
cp codex-index.json index.json
cp codex-report.json report.json
# Commit and push
git add index.json report.json
git commit -m "chore: update search index and report [skip ci]" || echo "No changes to commit"
git push origin index --force