File tree Expand file tree Collapse file tree 4 files changed +42
-17
lines changed Expand file tree Collapse file tree 4 files changed +42
-17
lines changed Original file line number Diff line number Diff line change 1- name : Deploy Chinese
1+ name : Generate Playground Files
22
33# Controls when the action will run. Triggers the workflow on push or pull request
44# events but only for the master branch
55on :
66 push :
77 branches : [master]
8- pull_request :
9- branches : [master]
108
119# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1210jobs :
1311 # This workflow contains a single job called "build"
14- build :
12+ generate-english-playground :
13+ # The type of runner that the job will run on
14+ runs-on : macos-latest
15+
16+ # Steps represent a sequence of tasks that will be executed as part of the job
17+ steps :
18+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
19+ - uses : actions/checkout@v2
20+
21+ # Checkout to chinese branch & Generate Chinese
22+ - name : Generate English Readme
23+ run : |
24+ ./generate-playground.sh
25+
26+ # Commit
27+ - name : Commit files
28+ run : |
29+ git config --local user.email "[email protected] " 30+ git config --local user.name "GitHub Action"
31+ git commit -m "Generate Playground"
32+ # # Push changes to master branch
33+ - name : Push changes
34+ uses : ad-m/github-push-action@master
35+ with :
36+ github_token : ${{ secrets.GITHUB_TOKEN }}
37+ branch : " master"
38+ force : false
39+
40+ # This workflow contains a single job called "build"
41+ generate-chinese-playground-and-branch :
42+ needs : generate-english-playground
1543 # The type of runner that the job will run on
1644 runs-on : macos-latest
1745
Original file line number Diff line number Diff line change 1+ How to contribute?
2+ ==================
3+
4+ - You are awesome!
5+ - Only editing files inside ` source ` is recommended, the rest is autogenerated and translated
6+ - Run ` generate-playground.sh ` locally
7+ - Opene the .playground locally and check if it works
8+ - Please be patient and respectful to fellow contributors
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ - [ ] Read [ CONTRIBUTING.md]] ( https://github.com/ochococo/Design-Patterns-In-Swift/blob/master/CONTRIBUTING.md] )
12- [ ] Added description
2- - [ ] Linked to or created issue
3- - [ ] Generated files as described [ GENERATE.md] ( https://github.com/ochococo/Design-Patterns-In-Swift/blob/master/GENERATE.md )
3+ - [ ] Linked to and/or created issue
You can’t perform that action at this time.
0 commit comments