File tree Expand file tree Collapse file tree 1 file changed +48
-8
lines changed Expand file tree Collapse file tree 1 file changed +48
-8
lines changed Original file line number Diff line number Diff line change 11version : 2.1
2+
3+ .release_branches : &release_branches
4+ filters :
5+ branches :
6+ only :
7+ - main
8+ - stable
9+
210workflows :
311 version : 2
4- release- main :
12+ main :
513 jobs :
614 - test :
7- name : Test php: 7.2, phpunit:7.5, mysql:5.7.34
15+ name : test- php- 7.2
816 context :
917 - dockerhub-credentials
1018 php : " 7.2"
1119 phpunit : " 7.5"
1220 mysql : " 5.7.34"
1321
1422 - test :
15- name : Test php: 8.0, phpunit:9.5, mysql:8.0.23
23+ name : test- php- 8.0
1624 context :
1725 - dockerhub-credentials
1826 php : " 8.0"
1927 phpunit : " 9.5"
2028 mysql : " 8.0.25"
2129
22- - release :
23- name : Release
30+ - approve_release :
31+ name : approve-release
32+ << : *release_branches
2433 type : approval
34+ requires :
35+ - test-php-7.2
36+ - test-php-8.0
37+
38+ - release :
39+ name : release
40+ << : *release_branches
2541 context :
2642 - dockerhub-credentials
2743 - github-credentials
2844 - npm-credentials
2945 requires :
30- - Test php:7.2, phpunit:7.5, mysql:5.7.34
31- - Test php:8.0, phpunit:9.5, mysql:8.0.23
46+ - approve-release
47+
48+ - sync-main-branch :
49+ name : sync-main-branch
50+ context :
51+ - github-credentials
3252 filters :
3353 branches :
34- only : main
54+ only :
55+ - stable
56+ requires :
57+ - release
58+
59+
60+
3561
3662jobs :
3763 test :
@@ -104,3 +130,17 @@ jobs:
104130 - run :
105131 name : Release
106132 command : npm run release
133+
134+ sync-main-branch :
135+ docker :
136+ - image : cimg/base:2021.07
137+ steps :
138+ - checkout
139+ - run :
140+ name : Merge stabe to main
141+ command : |
142+ git pull origin stable
143+ git checkout main
144+ git pull origin main
145+ git merge stable
146+ git push -q https://${GH_TOKEN}@github.com/dadish-etudes/processgraphql.git main
You can’t perform that action at this time.
0 commit comments