Skip to content

Commit 6453470

Browse files
authored
Merge pull request #455 from willcl-ark/auto-docs-ci
ci: auto-update api and graphdocs
2 parents f45de2e + 5d1edd7 commit 6453470

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/apidocs.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Format-api-docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
format-api-docs:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: write
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
ref: ${{ github.head_ref }}
17+
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.10'
22+
- uses: hynek/setup-cached-uv@v1
23+
- run: |
24+
echo Installing warnet python package for cli
25+
uv venv
26+
uv pip install -e .
27+
28+
- name: Run apidocs script
29+
run: |
30+
source .venv/bin/activate
31+
python3 resources/scripts/apidocs.py
32+
33+
- name: Run graphdocs script
34+
run: |
35+
source .venv/bin/activate
36+
python3 resources/scripts/graphdocs.py
37+
38+
- uses: stefanzweifel/git-auto-commit-action@v5
39+
with:
40+
commit_message: Update apidocs and/or graphdocs

0 commit comments

Comments
 (0)