-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.13 KB
/
Copy pathsync-featurebase.yml
File metadata and controls
45 lines (37 loc) · 1.13 KB
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
39
40
41
42
43
44
name: Sync to Featurebase
on:
push:
branches:
- main
paths:
- '**.mdx'
- '**.md'
- 'docs.json'
workflow_dispatch: # Allow manual trigger
jobs:
sync:
name: Sync Docs to Featurebase
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Full history for proper change detection
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Sync to Featurebase
env:
FEATUREBASE_API_KEY: ${{ secrets.FEATUREBASE_API_KEY }}
run: npm run sync:featurebase -- --verbose
- name: Commit mapping changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update Featurebase article mapping [skip ci]"
file_pattern: .featurebase-mapping.json
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"