Skip to content

Update documentation #40

Update documentation

Update documentation #40

Workflow file for this run

name: Update documentation
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * *'
jobs:
update_docs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run update script
env:
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN}}
run: python generate_docs.py -c generate_docs.yaml -t "$GH_ACCESS_TOKEN"
- name: Push changes
run: |
git config --global user.name "GitHub"
git config --global user.email "noreply@github.com"
git commit -a -m "Update pages"
git push