File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync Notion Docs
2+
3+ on :
4+ workflow_dispatch
5+
6+ jobs :
7+ pull-docs :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+
13+ - name : Setup Bun
14+ uses : oven-sh/setup-bun@v2
15+
16+ - name : Install dependencies
17+ run : bun i
18+
19+ - name : Notion To Markdown
20+ run : bun notionToMd
21+
22+ - name : Commit generated docs
23+ run : |
24+ git config user.name "github-actions[bot]"
25+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
26+
27+ # Stage specific paths (adjust to your generated files)
28+ git add docs i18n
29+
30+ # Commit if there are changes
31+ git diff --cached --quiet || git commit -m "chore: update docs from Notion"
32+
33+ # Push back to the repository
34+ git push
35+ env :
36+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37+
38+
You can’t perform that action at this time.
0 commit comments