-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (36 loc) · 1.06 KB
/
lazydocs.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
name: lazydocs
on:
push:
branches:
- main
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
- name: Install Python 3
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install lazydocs
pip install pydocstyle
- name: Generate documentation
run: lazydocs --overview-file="README.md" --validate snirf docs
- name: Commit
run: |
echo ${{ github.ref }}
git add docs
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "CI: Automated docs update" -a | exit 0
- name: Push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}