1- name : Generate Playground Files
1+ name : Generate Playground Files and READMES
22
33# Controls when the action will run. Triggers the workflow on push or pull request
44# events but only for the master branch
99# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1010jobs :
1111 # This workflow contains a single job called "build"
12- generate-english-playground :
12+ generate-playgrounds :
1313 # The type of runner that the job will run on
1414 runs-on : macos-latest
1515
@@ -18,10 +18,11 @@ jobs:
1818 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
1919 - uses : actions/checkout@v2
2020
21- # Checkout to chinese branch & Generate Chinese
22- - name : Generate English Readme
21+ # Checkout & Generate
22+ - name : Generate playgrounds and readmes
2323 run : |
2424 ./generate-playground.sh
25+ ./generate-playground-cn.sh
2526
2627 # Commit
2728 - name : Commit files
3839 force : false
3940
4041 # This workflow contains a single job called "build"
41- generate-chinese-playground-and- branch :
42- needs : generate-english-playground
42+ generate-chinese-branch :
43+ needs : generate-playgrounds
4344 # The type of runner that the job will run on
4445 runs-on : macos-latest
4546
4849 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
4950 - uses : actions/checkout@v2
5051
51- # Checkout to chinese branch & Generate Chinese
52+ # Checkout & Generate
5253 - name : Generate Chinese Readme
5354 run : |
5455 ./generate-playground-cn.sh
0 commit comments