Skip to content

Auto‑Generate Docs Index #200

Auto‑Generate Docs Index

Auto‑Generate Docs Index #200

name: Auto‑Generate Docs Index
on:
workflow_dispatch
jobs:
update-index:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: 18
- name: Install dependencies
run: npm install
- name: Generate docs index
run: npm run generate-docs-index
- name: Commit and push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add index.html
git commit -m "Auto-update docs index" || echo "No changes to commit"
git push