1313 SUMMARY_LOG_PATH : /tmp/summary/summary.log
1414 SUMMARY_LOG_ARTIFACT_NAME : summary-log
1515 AUTOGENERATE_BRANCH_NAME : autogenerate
16+ TEMP_AUTOGENERATE_BRANCH_NAME : autogenerate_tmp
1617 AUTHOR : ${{ github.actor }}
17- AUTHOR_EMAIL : < ${{ github.actor }}@users.noreply.github.com>
18+ AUTHOR_EMAIL : ${{ github.actor }}@users.noreply.github.com
1819jobs :
1920 batch-0 :
2021 name : Update Schemas Batch 0
2122 runs-on : ubuntu-latest
2223 steps :
2324 - uses : actions/checkout@v2.3.5
25+ with :
26+ ref : ${{ env.AUTOGENERATE_BRANCH_NAME }}
27+
28+ - uses : peterjgrainger/action-create-branch@v2.0.1
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31+ with :
32+ branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
2433
2534 - name : Clone azure-rest-api-specs
2635 uses : actions/checkout@v2.3.5
@@ -43,12 +52,11 @@ jobs:
4352 working-directory : generator
4453
4554 - name : Commit changes
46- uses : EndBug/add-and-commit@v7
55+ uses : EndBug/add-and-commit@v8
4756 with :
48- author_name : ${{ env.AUTHOR }}
49- author_email : ${{ env.AUTHOR_EMAIL }}
57+ default_author : github_actor
5058 message : ' Autogenerate schemas batch 0'
51- add : ' *.* '
59+ new_branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
5260
5361 - name : Upload summary log
5462 uses : actions/upload-artifact@v2
6169 runs-on : ubuntu-latest
6270 steps :
6371 - uses : actions/checkout@v2.3.5
72+ with :
73+ ref : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
6474
6575 - name : Clone azure-rest-api-specs
6676 uses : actions/checkout@v2.3.5
@@ -86,12 +96,11 @@ jobs:
8696 working-directory : generator
8797
8898 - name : Commit changes
89- uses : EndBug/add-and-commit@v7
99+ uses : EndBug/add-and-commit@v8
90100 with :
91- author_name : ${{ env.AUTHOR }}
92- author_email : ${{ env.AUTHOR_EMAIL }}
101+ default_author : github_actor
93102 message : ' Autogenerate schemas batch 1'
94- add : ' *.* '
103+ new_branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
95104
96105 - name : Upload summary log
97106 uses : actions/upload-artifact@v2
@@ -104,6 +113,8 @@ jobs:
104113 runs-on : ubuntu-latest
105114 steps :
106115 - uses : actions/checkout@v2.3.5
116+ with :
117+ ref : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
107118
108119 - name : Clone azure-rest-api-specs
109120 uses : actions/checkout@v2.3.5
@@ -129,12 +140,11 @@ jobs:
129140 working-directory : generator
130141
131142 - name : Commit changes
132- uses : EndBug/add-and-commit@v7
143+ uses : EndBug/add-and-commit@v8
133144 with :
134- author_name : ${{ env.AUTHOR }}
135- author_email : ${{ env.AUTHOR_EMAIL }}
145+ default_author : github_actor
136146 message : ' Autogenerate schemas batch 2'
137- add : ' *.* '
147+ new_branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
138148
139149 - name : Upload summary log
140150 uses : actions/upload-artifact@v2
@@ -147,6 +157,8 @@ jobs:
147157 runs-on : ubuntu-latest
148158 steps :
149159 - uses : actions/checkout@v2.3.5
160+ with :
161+ ref : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
150162
151163 - name : Clone azure-rest-api-specs
152164 uses : actions/checkout@v2.3.5
@@ -188,9 +200,9 @@ jobs:
188200 uses : peter-evans/create-pull-request@v3.12.1
189201 with :
190202 committer : GitHub <noreply@github.com>
191- author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com >
203+ author : ${{ env.AUTHOR }} <${{ env.AUTHOR_EMAIL }}>
192204 signoff : false
193- branch : ${{ env.AUTOGENERATE_BRANCH_NAME }}_tmp
205+ branch : ${{ env.AUTOGENERATE_BRANCH_NAME }}_ltst
194206 branch-suffix : short-commit-hash
195207 delete-branch : true
196208 title : |
0 commit comments