Merge pull request #647 from mplsgrant/2024-10-check-for-kube-folder #156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format-api-docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
format-api-docs: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- uses: hynek/setup-cached-uv@v1 | |
- run: | | |
echo Installing warnet python package for cli | |
uv venv | |
uv pip install -e . | |
- name: Run apidocs script | |
run: | | |
source .venv/bin/activate | |
python3 resources/scripts/apidocs.py | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update apidocs on ${{ github.head_ref }} |