-
-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (31 loc) · 853 Bytes
/
Copy pathupdate-docs-index.yml
File metadata and controls
38 lines (31 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Auto‑Generate Docs Index
on:
push:
paths:
- "docs/**"
- "scripts/generate-docs-index.js"
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
run: |
git config user.name "GitHub Actions Bot"
git config user.email "bot@github.com"
git add docs-index.html
git commit -m "Auto-update docs index" || echo "No changes to commit"
git push