Merge pull request #140 from openmsa/task_pause_ovi #77
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: 📝 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: Generate doc | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install pdoc3 | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Generate doc | |
| run: | | |
| pdoc --html --force -o msa_sdk_doc msa_sdk | |
| cp msa_sdk.json msa_sdk_doc/msa_sdk | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.12 | |
| - name: Create pull request | |
| uses: car-on-sale/action-pull-request-another-repo@v1.3.1 | |
| env: | |
| API_TOKEN_GITHUB: ${{ env.GITHUB_TOKEN }} | |
| with: | |
| source_folder: 'msa_sdk_doc/msa_sdk/' | |
| destination_repo: 'ubiqube/msa-docker' | |
| destination_folder: 'front/msa_sdk_doc' | |
| destination_base_branch: 'master' | |
| destination_head_branch: 'update_pythonsdk_doc' | |
| user_email: 'qa@ubiqube.com' | |
| user_name: 'qa4ubiqube' | |
| pr_title: 'Update Pyhton SDK documentation' | |
| commit_msg: 'Update documentation automatic created' |