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