Run UI tests on PRs with "ui" label (#20209)

* add conditional for label

* VAULT-14643 link jira
This commit is contained in:
claire bontempo 2023-04-18 12:03:35 -07:00 committed by GitHub
parent e258df032d
commit f4928cf7cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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:

View File

@ -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: