This file contains 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
# GitHub CI build pipeline | |
name: Awesome prototype from code to DITA (Flutter, RN, Electron, Unity) | |
on: | |
workflow_dispatch: | |
# pull_request: | |
# branches: | |
# - 'release/rtc-ng/3.7.203-unity' | |
# - 'release/rtc-ng/4.0.0-framework' | |
push: | |
branches: | |
# - 'release/rtc-ng/3.8.200-framework' | |
# - 'release/rtc-ng/4.0.0-framework' | |
# 4.0.0-electron | |
# - release/rtc-ng/4.2.0-framework | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
cd xml2json | |
python -m pip install --upgrade pip | |
pip install coverage | |
if [ -f requirements.txt ]; then | |
pip install -r requirements.txt | |
fi | |
- name: fetch proto | |
run: | | |
cd xml2json | |
# echo "----------------------------Starting for Unity------------------------------------------------" | |
# python extract_proto_and_sync_to_dita_unity.py --code_location ./code_to_check/unity_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented | |
# echo "----------------------------Starting for Flutter----------------------------------------------" | |
# python extract_proto_and_sync_to_dita_flutter.py --code_location ./code_to_check/flutter-ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-flutter.ditamap --decomment_code_location ./code_to_check/decommented | |
# echo "----------------------------Starting for RN---------------------------------------------------" | |
# python extract_proto_and_sync_to_dita_react_native.py --code_location ./code_to_check/rn_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-rn.ditamap --decomment_code_location ./code_to_check/decommented | |
# echo "----------------------------Starting for Electron---------------------------------------------" | |
# python extract_proto_and_sync_to_dita_electron.py --code_location ./code_to_check/electron_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-electron.ditamap --decomment_code_location ./code_to_check/decommented | |
echo "----------------------------Starting for Csharp------------------------------------------------" | |
python extract_proto_and_sync_to_dita_cs.py --code_location ./code_to_check/csharp_ng --dita_location ../dita/RTC-NG/API --dita_map_location ../dita/RTC-NG/config/keys-rtc-ng-api-unity.ditamap --decomment_code_location ./code_to_check/decommented | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
commit-message: Fetch proto | |
title: "[AUTO: MERGE AT YOUR EARLIEST CONVENIENCE] Fetch proto" | |
branch: auto/sync-proto | |
branch-suffix: timestamp | |
delete-branch: true | |
base: release/rtc-ng/4.2.0-framework | |
reviewers: Cilla-luodan | |
body: > | |
This PR is auto-generated to Fetch proto. @Cilla-luodan | |
labels: report, automated pr |