Daily Docs Update #520
This file contains hidden or 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: Daily Docs Update | |
| on: | |
| schedule: | |
| - cron: '30 2 * * *' # Runs daily at 2:30 AM UTC, a less congested time | |
| workflow_dispatch: # Allows manual triggering of the workflow | |
| jobs: | |
| update_docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | |
| ref: dev # Checkout the dev branch | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.x" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install dependencies | |
| run: uv sync --group dev | |
| - name: Generate docs | |
| run: | | |
| uv run bbot/scripts/docs.py | |
| - name: Create or Update Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| token: ${{ secrets.BBOT_DOCS_UPDATER_PAT }} | |
| branch: update-docs | |
| base: dev | |
| title: "Automated Docs Update" | |
| body: "This is an automated pull request to update the documentation." |