From 6602f4d9e05e3d9481d972f221b3f2d6555e2988 Mon Sep 17 00:00:00 2001 From: jrgriffiniii Date: Mon, 5 Jul 2021 20:59:38 -0400 Subject: [PATCH] Adds Circle CI step that fails if branch name is master --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 46defb4..14980a2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,6 +23,15 @@ jobs: steps: - samvera/cached_checkout + - run: + name: Check for a branch named 'master' + command: | + git fetch --all --quiet --prune --prune-tags + if [[ -n "$(git branch --all --list master */master)" ]]; then + echo "A branch named 'master' was found. Please remove it." + echo "$(git branch --all --list master */master)" + fi + [[ -z "$(git branch --all --list master */master)" ]] - samvera/bundle_for_gem: ruby_version: << parameters.ruby_version >> bundler_version: << parameters.bundler_version >>