-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (37 loc) · 1.02 KB
/
update-docs-schema.yml
File metadata and controls
43 lines (37 loc) · 1.02 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
name: Update Documentation Schema
on:
push:
branches:
- main
paths:
- 'aurelio-sdk/**/*.mdx'
- 'semantic-router/**/*.mdx'
- 'graphai/**/*.mdx'
- '!docs.json'
jobs:
update-schema:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Run schema update script
run: |
python3 scripts/update_docs_schema.py
- name: Check for changes
id: git-check
run: |
git diff --exit-code --quiet docs.json || echo "changes=true" >> $GITHUB_OUTPUT
- name: Commit and push if schema changed
if: steps.git-check.outputs.changes == 'true'
run: |
git config --local user.email "admin@aurelio.ai"
git config --local user.name "aurelio-bot"
git add docs.json
git commit -m "Auto-update documentation schema [skip ci]"
git push