File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,15 +364,31 @@ jobs:
364364 - name : Install dependencies
365365 working-directory : ./bigbluebutton-tests/playwright
366366 run : npm ci
367+ - if : needs.install-and-run-tests.result == 'failure'
368+ id : pr-data-artifact
369+ uses : actions/download-artifact@v3
370+ with :
371+ name : pr-comment-data
372+ - if : steps.pr-data-artifact.outcome == 'success'
373+ id : failure-check
374+ run : |
375+ if [ -f "./pr-comment-data/failure-reason" ]; then
376+ echo "isAutomatedTestFailure=false" >> $GITHUB_OUTPUT
377+ else
378+ echo "isAutomatedTestFailure=true" >> $GITHUB_OUTPUT
379+ fi
367380 - name : Download all blob reports from GitHub Actions Artifacts
381+ if : needs.install-and-run-tests.result == 'skipped' || !steps.failure-check.outputs.isAutomatedTestFailure
368382 uses : actions/download-artifact@v3
369383 with :
370384 name : all-blob-reports
371385 path : bigbluebutton-tests/playwright/all-blob-reports
372386 - name : Merge into HTML Report
387+ if : needs.install-and-run-tests.result == 'skipped' || !steps.failure-check.outputs.isAutomatedTestFailure
373388 working-directory : ./bigbluebutton-tests/playwright
374389 run : npx playwright merge-reports --reporter html ./all-blob-reports
375390 - name : Upload HTML tests report
391+ if : needs.install-and-run-tests.result == 'skipped' || !steps.failure-check.outputs.isAutomatedTestFailure
376392 uses : actions/upload-artifact@v3
377393 with :
378394 name : tests-report
You can’t perform that action at this time.
0 commit comments