-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (44 loc) · 1.44 KB
/
update_doc.yml
File metadata and controls
50 lines (44 loc) · 1.44 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
name: 📝 Update documentation
on:
push:
branches:
- master
paths:
- 'msa_sdk/*'
env:
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python 3.12
uses: actions/setup-python@v6
with:
python-version: 3.12
- name: Install dependencies
run: |
DIR=$(pwd)
cd ../
python -m pip install --upgrade pip
if [ -f ${DIR}/requirements.txt ]; then pip install -r ${DIR}/requirements.txt ; fi
if [ -f ${DIR}/requirements-dev.txt ]; then pip install -r ${DIR}/requirements-dev.txt ; fi
- name: Generate doc
run: |
pdoc --html --force -o msa_sdk_doc msa_sdk
cp msa_sdk.json msa_sdk_doc/msa_sdk
- name: Create pull request
uses: gabrielpossamai/action-pull-request-another-repo@main
env:
API_TOKEN_GITHUB: ${{ secrets.MSA_DOCKER_REPO_ACCESS_TOKEN }}
with:
source_folder: 'msa_sdk_doc/msa_sdk/'
destination_repo: 'ubiqube/msa-front'
destination_folder: 'msa_sdk_doc'
destination_base_branch: 'master'
destination_head_branch: 'update_pythonsdk_doc'
user_email: 'qa@ubiqube.com'
user_name: 'qa4ubiqube'
pr_title: 'MSA-15028: 📚 Update Python SDK documentation.'
commit_msg: 'MSA-15028: 📚 Update documentation automatic created.'