Skip to content

Update Auto-Generated Docs #704

Update Auto-Generated Docs

Update Auto-Generated Docs #704

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