2020-03-02 20:08:42 +00:00
|
|
|
description: >
|
|
|
|
Check if branch name starts with ui/ or docs/ and if so, exit.
|
|
|
|
steps:
|
|
|
|
- run:
|
|
|
|
working_directory: ~/
|
|
|
|
name: Check branch name
|
|
|
|
command: |
|
|
|
|
# If the branch being tested starts with ui/ or docs/ we want to exit the job without failing
|
2022-01-11 14:02:47 +00:00
|
|
|
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* || "$CIRCLE_BRANCH" = backport/docs/* ]] && {
|
2020-03-02 20:08:42 +00:00
|
|
|
# stop the job from this step
|
|
|
|
circleci-agent step halt
|
|
|
|
}
|
|
|
|
# exit with success either way
|
|
|
|
exit 0
|