Run UI tests on PRs with "ui" label (#20209)
* add conditional for label * VAULT-14643 link jira
This commit is contained in:
parent
e258df032d
commit
f4928cf7cb
|
@ -183,12 +183,14 @@ jobs:
|
|||
# The test-ui job is only run on:
|
||||
# - pushes to main and branches starting with "release/"
|
||||
# - PRs where the branch starts with "ui/", "backport/ui/", "merge", or when base branch starts with "release/"
|
||||
# - PRs with the "ui" label on github
|
||||
if: |
|
||||
github.ref_name == 'main' ||
|
||||
startsWith(github.ref_name, 'release/') ||
|
||||
startsWith(github.head_ref, 'ui/') ||
|
||||
startsWith(github.head_ref, 'backport/ui/') ||
|
||||
startsWith(github.head_ref, 'merge')
|
||||
startsWith(github.head_ref, 'merge') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'ui')
|
||||
needs:
|
||||
- setup
|
||||
permissions:
|
||||
|
|
|
@ -14,7 +14,7 @@ on:
|
|||
jobs:
|
||||
# checks that a milestone entry is present for a PR
|
||||
milestone-check:
|
||||
# If there a `pr/no-milestone` label we ignore this check
|
||||
# If there is a `pr/no-milestone` label we ignore this check
|
||||
if: "!contains(github.event.pull_request.labels.*.name, 'pr/no-milestone')"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue