Skip to content

Merge pull request #3860 from AgoraIO/4.5.0-bugfix-1205 #3997

Merge pull request #3860 from AgoraIO/4.5.0-bugfix-1205

Merge pull request #3860 from AgoraIO/4.5.0-bugfix-1205 #3997

# GitHub CI build pipeline
name: Awesome prototype syncs
on:
# pull_request:
# branches:
# - master
# - 'release/**'
push:
branches:
- master
# - 'release/**'
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: sync proto type (cn to en)
run: |
cd xml2json
python sync_prototype.py --src_dir ../dita/RTC-NG --dest_dir ../en-US/dita/RTC-NG
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GH_PAT }}
commit-message: Sync cn prototype to en prototype
title: "[AUTO: DELETE THIS BRANCH ONCE YOU MERGE!!!] Sync cn prototype to en prototype in a flash"
branch: auto/sync-cn-proto-to-en-patch
branch-suffix: timestamp
delete-branch: true
# reviewers: lemon-chen
body: >
DELETE THIS BRANCH ONCE YOU MERGE!!!!This PR is auto-generated to sync prototypes from cn DITA files to en DITA files. @HeatherWYL @Cilla-luodan
labels: automerge
- name: Enable Pull Request Automerge
if: steps.cpr.outputs.pull-request-operation == 'created'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.GH_PAT }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: squash