open-vault/.circleci/config/commands/check-branch-name.yml
Chelsea Shaw 859696361f
skip go tests on ui and doc branches (#8372)
* skip test-go and test-go-race workflows when branch starts with ui/ or docs/
2020-03-02 14:08:42 -06:00

15 lines
484 B
YAML

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
[[ "$CIRCLE_BRANCH" = ui/* || "$CIRCLE_BRANCH" = docs/* ]] && {
# stop the job from this step
circleci-agent step halt
}
# exit with success either way
exit 0