Skip test result generation and upload in forks (#34023)

* Skip test result generation and upload in forks

* Generate test report in fork
This commit is contained in:
Lucas Bustamante 2022-07-21 18:49:25 +01:00 committed by GitHub
parent 4c1a82dc26
commit edd453c40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -73,7 +73,7 @@ jobs:
- name: Generate Playwright E2E Test report.
id: generate_e2e_report
if: |
always() &&
always() &&
fromJSON(env.E2E_PLAYWRIGHT) &&
(
steps.run_playwright_e2e_tests.conclusion != 'cancelled' ||
@ -190,6 +190,7 @@ jobs:
name: Post test results
if: |
always() &&
! github.event.pull_request.head.repo.fork &&
(
contains( needs.*.result, 'success' ) ||
contains( needs.*.result, 'failure' )
@ -264,6 +265,7 @@ jobs:
name: Publish test reports
if: |
always() &&
! github.event.pull_request.head.repo.fork &&
(
contains( needs.*.result, 'success' ) ||
contains( needs.*.result, 'failure' )