File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -197,21 +197,29 @@ jobs:
197197 steps :
198198 - uses : actions/checkout@v4
199199
200- - name : Download 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 -- .
205+
206+ - name : Download Playwright artifacts
201207 uses : actions/download-artifact@v3
202208 with :
203209 name : playwright-artifacts
204210 path : playwright-artifacts
205211
206- - name : Setup Pages
207- uses : actions/configure-pages@v3
212+ - name : Copy new report
213+ run : |
214+ mkdir -p gh-pages/${{ github.event.pull_request.number }}
215+ cp -r playwright-artifacts/playwright-report/* gh-pages/${{ github.event.pull_request.number }}/
208216
209217 - name : Deploy report to GitHub Pages
210218 uses : peaceiris/actions-gh-pages@v3
211219 with :
212220 github_token : ${{ secrets.GITHUB_TOKEN }}
213- publish_dir : ./playwright-artifacts/playwright-report
214- destination_dir : ${{ github.event.pull_request.number }}
221+ publish_dir : gh-pages
222+ destination_dir : .
215223 force_orphan : true
216224
217225 - name : Update PR description
You can’t perform that action at this time.
0 commit comments