13
13
SUMMARY_LOG_PATH : /tmp/summary/summary.log
14
14
SUMMARY_LOG_ARTIFACT_NAME : summary-log
15
15
AUTOGENERATE_BRANCH_NAME : autogenerate
16
+ TEMP_AUTOGENERATE_BRANCH_NAME : autogenerate_tmp
16
17
AUTHOR : ${{ github.actor }}
17
- AUTHOR_EMAIL : < ${{ github.actor }}@users.noreply.github.com>
18
+ AUTHOR_EMAIL : ${{ github.actor }}@users.noreply.github.com
18
19
jobs :
19
20
batch-0 :
20
21
name : Update Schemas Batch 0
21
22
runs-on : ubuntu-latest
22
23
steps :
23
24
25
+ with :
26
+ ref : ${{ env.AUTOGENERATE_BRANCH_NAME }}
27
+
28
+ -
uses :
peterjgrainger/[email protected]
29
+ env :
30
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
31
+ with :
32
+ branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
24
33
25
34
- name : Clone azure-rest-api-specs
26
35
@@ -43,12 +52,11 @@ jobs:
43
52
working-directory : generator
44
53
45
54
- name : Commit changes
46
- uses : EndBug/add-and-commit@v7
55
+ uses : EndBug/add-and-commit@v8
47
56
with :
48
- author_name : ${{ env.AUTHOR }}
49
- author_email : ${{ env.AUTHOR_EMAIL }}
57
+ default_author : github_actor
50
58
message : ' Autogenerate schemas batch 0'
51
- add : ' *.* '
59
+ new_branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
52
60
53
61
- name : Upload summary log
54
62
uses : actions/upload-artifact@v2
61
69
runs-on : ubuntu-latest
62
70
steps :
63
71
72
+ with :
73
+ ref : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
64
74
65
75
- name : Clone azure-rest-api-specs
66
76
@@ -86,12 +96,11 @@ jobs:
86
96
working-directory : generator
87
97
88
98
- name : Commit changes
89
- uses : EndBug/add-and-commit@v7
99
+ uses : EndBug/add-and-commit@v8
90
100
with :
91
- author_name : ${{ env.AUTHOR }}
92
- author_email : ${{ env.AUTHOR_EMAIL }}
101
+ default_author : github_actor
93
102
message : ' Autogenerate schemas batch 1'
94
- add : ' *.* '
103
+ new_branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
95
104
96
105
- name : Upload summary log
97
106
uses : actions/upload-artifact@v2
@@ -104,6 +113,8 @@ jobs:
104
113
runs-on : ubuntu-latest
105
114
steps :
106
115
116
+ with :
117
+ ref : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
107
118
108
119
- name : Clone azure-rest-api-specs
109
120
@@ -129,12 +140,11 @@ jobs:
129
140
working-directory : generator
130
141
131
142
- name : Commit changes
132
- uses : EndBug/add-and-commit@v7
143
+ uses : EndBug/add-and-commit@v8
133
144
with :
134
- author_name : ${{ env.AUTHOR }}
135
- author_email : ${{ env.AUTHOR_EMAIL }}
145
+ default_author : github_actor
136
146
message : ' Autogenerate schemas batch 2'
137
- add : ' *.* '
147
+ new_branch : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
138
148
139
149
- name : Upload summary log
140
150
uses : actions/upload-artifact@v2
@@ -147,6 +157,8 @@ jobs:
147
157
runs-on : ubuntu-latest
148
158
steps :
149
159
160
+ with :
161
+ ref : ${{ env.TEMP_AUTOGENERATE_BRANCH_NAME }}
150
162
151
163
- name : Clone azure-rest-api-specs
152
164
@@ -188,9 +200,9 @@ jobs:
188
200
uses :
peter-evans/[email protected]
189
201
with :
190
202
committer :
GitHub <[email protected] >
191
- author : ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com >
203
+ author : ${{ env.AUTHOR }} <${{ env.AUTHOR_EMAIL }}>
192
204
signoff : false
193
- branch : ${{ env.AUTOGENERATE_BRANCH_NAME }}_tmp
205
+ branch : ${{ env.AUTOGENERATE_BRANCH_NAME }}_ltst
194
206
branch-suffix : short-commit-hash
195
207
delete-branch : true
196
208
title : |
0 commit comments