-
Notifications
You must be signed in to change notification settings - Fork 19
51 lines (50 loc) · 2.04 KB
/
python-app-sync-proto.yml
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
51
# 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