Skip to content

Commit

Permalink
Adds Circle CI step that fails if branch name is master
Browse files Browse the repository at this point in the history
  • Loading branch information
jrgriffiniii authored and cjcolvar committed Jan 27, 2023
1 parent c32322f commit 6602f4d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 >>
Expand Down

0 comments on commit 6602f4d

Please sign in to comment.