File: docs_source_update.yml

package info (click to toggle)
pkb-client 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 356 kB
  • sloc: python: 3,067; makefile: 83
file content (37 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
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
name: update docs source

on:
  push:
    branches:
      - main
    paths:
      - pkb_client/**

jobs:
  update:
    name: update docs source
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6

      - name: Set up Python 3.14
        uses: actions/setup-python@v6.2.0
        with:
          python-version: 3.14

      - name: Install sphinx
        run: pip install sphinx

      - name: Build docs source
        run: sphinx-apidoc -f -o docs/source pkb_client

      - name: Open PR with changes
        uses: peter-evans/create-pull-request@v8
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          title: "[Docs]: update docs source"
          commit-message: "update docs source"
          branch: "docs_source_update"
          delete-branch: true
          label: "docs-update"
          add-paths: docs/source