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