From 5c05f631bbbdac3c751468395a66af8b8be66eba Mon Sep 17 00:00:00 2001 From: jrgriffiniii Date: Mon, 5 Jul 2021 19:12:38 -0400 Subject: [PATCH] Updating the CircleCI configuration to check for a master branch --- .circleci/config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 05e5dd5..0eed26e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,15 @@ jobs: - run: 'sudo apt-get update && sudo apt-get install clamav' - run: 'sudo freshclam' - 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 >>