support e2e label for running cypress (#16838)

* support e2e label for running cypress

* add docs to path ignore
This commit is contained in:
Chirag Madlani 2024-06-28 14:17:20 +05:30 committed by GitHub
parent 56bc7e647c
commit 00772fc83f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,8 +22,8 @@ on:
- synchronize - synchronize
- reopened - reopened
- ready_for_review - ready_for_review
paths: paths-ignore:
- openmetadata-ui/** - 'openmetadata-docs/**'
permissions: permissions:
contents: read contents: read
@ -35,8 +35,7 @@ concurrency:
jobs: jobs:
cypress-ci-mysql: cypress-ci-mysql:
if: | if: |
github.event_name == 'workflow_dispatch' || github.event_name == 'workflow_dispatch' || contains( github.event.pull_request.labels.*.name, 'e2e')
( github.event_name == 'pull_request_target'&& github.event.pull_request.draft == false )
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
fail-fast: false fail-fast: false