-
Notifications
You must be signed in to change notification settings - Fork 33
51 lines (41 loc) · 1.31 KB
/
regenerate-docs.yml
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
45
46
47
48
49
50
51
name: Update Auto-Generated Docs
on:
schedule:
# At the end of every day.
- cron: 0 0 * * *
jobs:
update_auto_docs:
name: update_auto_docs
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.9"
- name: Setup Linux
if: runner.os == 'linux'
run: |
sudo apt-get install -y cmake libsndfile1
- name: Install Ludwig
run: |
pip install ludwig
pip install ludwig[viz]
- name: Set Ludwig version env
run: |
echo "ludwig_version=$(python -c "import ludwig; print('.'.join(ludwig.__version__.split('.')[:2]))")" >> $GITHUB_ENV
- name: Install dependencies
run: pip install -r requirements.txt
- name: Generate API Docs
run: python code_doc_autogen.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
commit-message: "[auto] Regenerate Ludwig API docs"
title: "[auto] Regenerate Ludwig API docs"
body: This is an auto-generated PR that updates Ludwig API docs.
labels: auto
reviewers: ludwig-maintainers
branch: regenerate-docs
base: master