File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -197,22 +197,24 @@ jobs:
197197 steps :
198198 - uses : actions/checkout@v4
199199
200- - name : Download artifacts
201- uses : actions/download-artifact@v3
202- with :
203- name : playwright-artifacts
204- path : playwright-artifacts
200+ - name : Fetch gh-pages branch
201+ run : |
202+ git fetch origin gh-pages:gh-pages
203+ mkdir gh-pages
204+ git --work-tree=gh-pages checkout gh-pages -- .
205205
206- - name : Setup Pages
207- uses : actions/configure-pages@v3
206+ - name : Copy new report
207+ run : |
208+ mkdir -p gh-pages/${{ github.event.pull_request.number }}
209+ cp -r playwright-artifacts/playwright-report/* gh-pages/${{ github.event.pull_request.number }}/
208210
209211 - name : Deploy report to GitHub Pages
210212 uses : peaceiris/actions-gh-pages@v3
211213 with :
212214 github_token : ${{ secrets.GITHUB_TOKEN }}
213- publish_dir : ./playwright-artifacts/playwright-report
214- destination_dir : ${{ github.event.pull_request.number }}
215- force_orphan : true
215+ publish_dir : gh-pages
216+ destination_dir : .
217+ keep_history : false
216218
217219 - name : Update PR description
218220 uses : actions/github-script@v6
You can’t perform that action at this time.
0 commit comments