Revert "update sync_prototype.py" #3275
Workflow file for this run
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 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/API --dest_dir ../en-US/dita/RTC/API | |
python sync_prototype.py --src_dir ../dita/RTC-NG/API --dest_dir ../en-US/dita/RTC-NG/API | |
- 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 |