@@ -183,15 +183,14 @@ jobs:
183
183
echo "diff=$diff" >> $GITHUB_OUTPUT
184
184
echo "percent=$percent" >> $GITHUB_OUTPUT
185
185
186
- deploy_and_update :
187
- name : Deploy and Update PR
188
- needs : [e2e_tests, bundle_size ]
186
+ deploy_report :
187
+ name : Deploy Test Report
188
+ needs : [e2e_tests]
189
189
if : ${{always() && (github.ref == 'refs/heads/main' || github.event.pull_request.head.repo.full_name == github.repository)}}
190
190
runs-on : ubuntu-latest
191
191
permissions :
192
192
contents : write
193
193
pages : write
194
- pull-requests : write
195
194
196
195
steps :
197
196
- uses : actions/checkout@v4
@@ -229,9 +228,27 @@ jobs:
229
228
destination_dir : .
230
229
force_orphan : true
231
230
231
+ update_pr :
232
+ name : Update PR Description
233
+ needs : [e2e_tests, bundle_size]
234
+ if : ${{always() && github.event_name == 'pull_request'}}
235
+ runs-on : ubuntu-latest
236
+ permissions :
237
+ pull-requests : write
238
+
239
+ steps :
240
+ - uses : actions/checkout@v4
241
+ with :
242
+ fetch-depth : 0
243
+
244
+ - name : Download Playwright artifacts
245
+ uses : actions/download-artifact@v3
246
+ with :
247
+ name : playwright-artifacts
248
+ path : playwright-artifacts
249
+
232
250
- name : Count new tests
233
251
id : count_tests
234
- if : github.event_name == 'pull_request'
235
252
run : |
236
253
git fetch origin main:main
237
254
new_tests=0
@@ -259,7 +276,6 @@ jobs:
259
276
echo "new_tests=$new_tests" >> $GITHUB_OUTPUT
260
277
261
278
- name : Update PR description
262
- if : github.event_name == 'pull_request'
263
279
uses : actions/github-script@v6
264
280
with :
265
281
github-token : ${{secrets.GITHUB_TOKEN}}
0 commit comments