[testing workflows] Harden the run condition for reporting jobs to only run in the monorepo (#50017)
This commit is contained in:
parent
406cc67c47
commit
f06302bbb5
|
@ -236,7 +236,7 @@ jobs:
|
||||||
'project-lint-jobs',
|
'project-lint-jobs',
|
||||||
'project-test-jobs',
|
'project-test-jobs',
|
||||||
]
|
]
|
||||||
if: ${{ !cancelled() && github.event_name != 'pull_request' && ! github.event.pull_request.head.repo.fork }}
|
if: ${{ !cancelled() && github.event_name != 'pull_request' && github.repository == 'woocommerce/woocommerce' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: 'actions/checkout@v4'
|
- uses: 'actions/checkout@v4'
|
||||||
name: 'Checkout'
|
name: 'Checkout'
|
||||||
|
@ -273,7 +273,7 @@ jobs:
|
||||||
'project-jobs',
|
'project-jobs',
|
||||||
'project-test-jobs',
|
'project-test-jobs',
|
||||||
]
|
]
|
||||||
if: ${{ !cancelled() && needs.project-jobs.outputs.report-jobs != '[]' && ! github.event.pull_request.head.repo.fork }}
|
if: ${{ !cancelled() && needs.project-jobs.outputs.report-jobs != '[]' && github.repository == 'woocommerce/woocommerce' }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
@ -330,7 +330,7 @@ jobs:
|
||||||
|
|
||||||
report-flaky-tests:
|
report-flaky-tests:
|
||||||
name: 'Create issues for flaky tests'
|
name: 'Create issues for flaky tests'
|
||||||
if: ${{ !cancelled() && ! github.event.pull_request.head.repo.fork && needs.project-jobs.outputs.test-jobs != '[]' }}
|
if: ${{ !cancelled() && github.repository == 'woocommerce/woocommerce' && needs.project-jobs.outputs.test-jobs != '[]' }}
|
||||||
needs:
|
needs:
|
||||||
[
|
[
|
||||||
'project-jobs',
|
'project-jobs',
|
||||||
|
|
|
@ -7,6 +7,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
run-tests:
|
run-tests:
|
||||||
name: 'Run tests'
|
name: 'Run tests'
|
||||||
|
if: github.repository == 'woocommerce/woocommerce'
|
||||||
uses: ./.github/workflows/ci.yml
|
uses: ./.github/workflows/ci.yml
|
||||||
with:
|
with:
|
||||||
trigger: 'daily-checks'
|
trigger: 'daily-checks'
|
||||||
|
|
Loading…
Reference in New Issue