@@ -183,15 +183,14 @@ jobs:
183183 echo "diff=$diff" >> $GITHUB_OUTPUT
184184 echo "percent=$percent" >> $GITHUB_OUTPUT
185185
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]
189189 if : ${{always() && (github.ref == 'refs/heads/main' || github.event.pull_request.head.repo.full_name == github.repository)}}
190190 runs-on : ubuntu-latest
191191 permissions :
192192 contents : write
193193 pages : write
194- pull-requests : write
195194
196195 steps :
197196 - uses : actions/checkout@v4
@@ -229,9 +228,27 @@ jobs:
229228 destination_dir : .
230229 force_orphan : true
231230
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+
232250 - name : Count new tests
233251 id : count_tests
234- if : github.event_name == 'pull_request'
235252 run : |
236253 git fetch origin main:main
237254 new_tests=0
@@ -259,7 +276,6 @@ jobs:
259276 echo "new_tests=$new_tests" >> $GITHUB_OUTPUT
260277
261278 - name : Update PR description
262- if : github.event_name == 'pull_request'
263279 uses : actions/github-script@v6
264280 with :
265281 github-token : ${{secrets.GITHUB_TOKEN}}
0 commit comments